chiark / gitweb /
ipif: eat_optionalstr: understand that *argp may be 0
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Apr 2017 19:10:42 +0000 (20:10 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Apr 2017 19:10:42 +0000 (20:10 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ipif/service.c

index 7821a46..5190151 100644 (file)
@@ -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) {