From: Ian Jackson Date: Sun, 16 Apr 2017 19:10:42 +0000 (+0100) Subject: ipif: eat_optionalstr: understand that *argp may be 0 X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/commitdiff_plain/eccfa510eebbda0703971e3f708c293cfd6471a5 ipif: eat_optionalstr: understand that *argp may be 0 Signed-off-by: Ian Jackson --- diff --git a/ipif/service.c b/ipif/service.c index 7821a46..5190151 100644 --- a/ipif/service.c +++ b/ipif/service.c @@ -338,7 +338,7 @@ static char *eat_optionalstr(const char **argp, *argp= comma + 1; } else { len= strlen(start); - *argp= start + len; + *argp= 0; } } if (!len) {