aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/comm.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-10-09 13:43:32 -0500
committerRob Landley <rob@landley.net>2014-10-09 13:43:32 -0500
commit3d56716d362d6a827c5f81029ac64c71b56a2f5c (patch)
tree93377ffa6621214916c82b0985483e4d13822336 /toys/posix/comm.c
parent7196d758a0728bd43451f869eb85528b6cd20bea (diff)
downloadtoybox-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.c2
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]);
}