提交 abdb0c7b 编写于 作者: K Kurt Roeckx

Skip non-existing files.

Reviewed-by: NRich Salz <rsalz@openssl.org>
GH: #1324
上级 5a3a5466
......@@ -33,6 +33,8 @@ int main(int argc, char **argv) {
stat(argv[n], &st);
f = fopen(argv[n], "rb");
if (f == NULL)
continue;
buf = malloc(st.st_size);
s = fread(buf, 1, st.st_size, f);
OPENSSL_assert(s == (size_t)st.st_size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册