Commit 6c2bfd48 authored by Niels Möller's avatar Niels Möller
Browse files

(read_file): Check return value of

fopen.

Rev: src/spki/testsuite/cdsa-reduce-test.c:1.3
parent b8fd9ed0
......@@ -23,7 +23,9 @@ read_file(const char *srcdir,
sprintf(fname, "%s%d%s", prefix, i, suffix);
f = fopen(fname, "rb");
if (!f)
return NULL;
for (;;)
{
assert(alloc == done);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment