Detected by clang.
* tests/test-fflush.c (main): Don't fclose a NULL pointer.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2011-05-11 Eric Blake <eblake@redhat.com>
+
+ test-fflush: silence compiler warning
+ * tests/test-fflush.c (main): Don't fclose a NULL pointer.
+
2011-05-11 Bruno Haible <bruno@clisp.org>
canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
if (!f || 0 > fd || fread (buffer, 1, 5, f) != 5)
{
fputs ("Failed initial read of sample file.\n", stderr);
- fclose (f);
+ if (f)
+ fclose (f);
unlink ("test-fflush.txt");
return 1;
}