aboutsummaryrefslogtreecommitdiff
path: root/sway/stringop.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-09-10 14:18:56 -0400
committerDrew DeVault <sir@cmpwn.com>2015-09-10 14:18:56 -0400
commitf5343adae4d631e4cdade7869b4d73fc97b4ac5f (patch)
tree7c12a435bf56e4ebfcae689ce46280eeeb330346 /sway/stringop.c
parent6388241abb7e2e66e716fc128e658d3d3419442a (diff)
parentaaa0923bc4fe4ffda114482a9b8023c90c26c8dc (diff)
downloadsway-f5343adae4d631e4cdade7869b4d73fc97b4ac5f.tar.xz
Merge pull request #177 from taiyu-len/master
cmd status + workspace ws output op
Diffstat (limited to 'sway/stringop.c')
-rw-r--r--sway/stringop.c2
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);