From: Jim Warner Date: Tue, 18 Oct 2011 07:36:22 +0000 (-0500) Subject: rh analysis #2: pmap X-Git-Tag: v3.3.0~7^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3786c5321e3848f60021c08fbbd5be85536a1b5;p=procps-ng rh analysis #2: pmap http://www.freelists.org/post/procps/Scan-results,5 --- diff --git a/pmap.c b/pmap.c index 24a4e427..9fcaa2af 100644 --- a/pmap.c +++ b/pmap.c @@ -311,7 +311,7 @@ int main(int argc, char *argv[]){ char *arg2 = strchr(arg1,','); if(arg2) *arg2 = '\0'; - arg2 = arg2 ? arg2++ : arg1; + arg2 = *arg2 ? arg2++ : arg1; if(*arg1) range_low = STRTOUKL(arg1,&arg1,16);