diff options
author | Rob Landley <rob@landley.net> | 2014-10-09 13:43:32 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-10-09 13:43:32 -0500 |
commit | 3d56716d362d6a827c5f81029ac64c71b56a2f5c (patch) | |
tree | 93377ffa6621214916c82b0985483e4d13822336 /toys/posix/comm.c | |
parent | 7196d758a0728bd43451f869eb85528b6cd20bea (diff) | |
download | toybox-3d56716d362d6a827c5f81029ac64c71b56a2f5c.tar.gz |
Various bugfixes (mostly resource leaks) from Ashwini Sharma's static analysis, plus occasional tweak by me while reviewing them.
Diffstat (limited to 'toys/posix/comm.c')
-rw-r--r-- | toys/posix/comm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/comm.c b/toys/posix/comm.c index bbdcccef..6c726cf6 100644 --- a/toys/posix/comm.c +++ b/toys/posix/comm.c @@ -77,5 +77,5 @@ void comm_main(void) line[i] = get_line(file[i]); } - if (CFG_TOYBOX_FREE) for (i = 0; i < 2; i--) xclose(file[i]); + if (CFG_TOYBOX_FREE) for (i = 0; i < 2; i++) xclose(file[i]); } |