This commit is contained in:
albert
2002-10-02 00:33:56 +00:00
parent bbdb12e639
commit 7b1aebf7c4
4 changed files with 5 additions and 1 deletions

View File

@ -699,6 +699,7 @@ static const char *grab_gnu_arg(void){
if(*++flagptr) return flagptr; /* found it */
return NULL; /* empty '=' or ':' */
case '\0': /* try next argv[] */
;
}
if(thisarg+2 > ps_argc) return NULL; /* there is nothing left */
/* argument follows ps_argv[thisarg] */