aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/stringop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/stringop.c b/common/stringop.c
index 61324458..432bee7f 100644
--- a/common/stringop.c
+++ b/common/stringop.c
@@ -144,7 +144,7 @@ char **split_args(const char *start, int *argc) {
}
void free_argv(int argc, char **argv) {
- while (--argc > 0) {
+ while (argc-- > 0) {
free(argv[argc]);
}
free(argv);