diff options
Diffstat (limited to 'sway/stringop.c')
-rw-r--r-- | sway/stringop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/stringop.c b/sway/stringop.c index 270e673a..191e40c8 100644 --- a/sway/stringop.c +++ b/sway/stringop.c @@ -145,7 +145,7 @@ char **split_args(const char *start, int *argc) { } void free_argv(int argc, char **argv) { - while (--argc) { + while (--argc > 0) { free(argv[argc]); } free(argv); |