commit | 4437be0e2610c8b537ba90c2ef35ddcf0bb5fc78 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Mon Mar 16 13:27:16 2015 -0500 |
committer | Rob Landley <rob@landley.net> | Mon Mar 16 13:27:16 2015 -0500 |
tree | aaa66ddc4775e3c63dd8211bcbdfb6ca376d6f57 | |
parent | d111b9572125b70f821e89ac118c80bc4d9ad5b6 [diff] [blame] |
Fix mount -a segfault without -O, reported by Janus Troelsen.
diff --git a/lib/getmountlist.c b/lib/getmountlist.c index c0e6875..30fb9a3 100644 --- a/lib/getmountlist.c +++ b/lib/getmountlist.c
@@ -90,7 +90,7 @@ { int i = 1; - for (;;) { + while (scanlist && *scanlist) { char *opt = comma_iterate(&scanlist, &i), *s = xstrndup(opt, i); i = comma_scan(optlist, s, 0);