From 7eb3e4364c2bcebd2fdfef52c07f5101aa03e5bb Mon Sep 17 00:00:00 2001 From: Ashwini Sharma Date: Tue, 12 Aug 2014 07:09:01 -0500 Subject: Patches to commands for issues reported from static analysis tool. portability.h.patch - it is for O_CLOEXEC, as compiler complained of it. Makefile.patch - for cleaning generated/*.o files and libopts.dat file [Fixup to uniq.c from Rob.] --- toys/posix/uniq.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toys/posix/uniq.c') diff --git a/toys/posix/uniq.c b/toys/posix/uniq.c index bd41d4af..3cfdb947 100644 --- a/toys/posix/uniq.c +++ b/toys/posix/uniq.c @@ -113,6 +113,8 @@ void uniq_main(void) print_line(outfile, prevline); if (CFG_TOYBOX_FREE) { + if (outfile != stdout) fclose(outfile); + if (infile != stdin) fclose(infile); free(prevline); free(thisline); } -- cgit v1.2.3