sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 235cfd93b22c24f851d6974a9b56bfe84023ac00
parent fb41371444110949c54d5a60e917a0bb6fa9d366
Author: Daniel Lockyer <thisisdaniellockyer@gmail.com>
Date:   Fri, 29 Apr 2016 18:00:21 +0100

common/stringop.c: a premature decrement meant an element of argv was never released

Diffstat:
Mcommon/stringop.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);