commit | 4c8e9640702d90f9e2c5d5d5f5f9e299c67978eb | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Sat Oct 15 14:37:38 2011 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Oct 15 14:37:38 2011 +0200 |
tree | 099465420444982dc06763d5bfe59c7814f1d234 | |
parent | 43f747922e001a7bfb904dfcaa51934b986345ae [diff] [blame] |
Fix strip blank space for empty string Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/parse.c b/parse.c index afbde61..18e8a40 100644 --- a/parse.c +++ b/parse.c
@@ -273,6 +273,8 @@ { char *s = *p; + if (!strlen(s)) + return; while (isspace((int) *s)) s++; @@ -283,6 +285,9 @@ { char *start = p, *s; + if (!strlen(p)) + return; + s = strchr(p, ';'); if (s) *s = '\0';