]> granicus.if.org Git - procps-ng/commitdiff
rh analysis #2: pmap
authorJim Warner <james.warner@comcast.net>
Tue, 18 Oct 2011 07:36:22 +0000 (02:36 -0500)
committerSami Kerola <kerolasa@iki.fi>
Wed, 19 Oct 2011 07:33:43 +0000 (09:33 +0200)
http://www.freelists.org/post/procps/Scan-results,5

pmap.c

diff --git a/pmap.c b/pmap.c
index 24a4e42734673b4656b81587cbba52a7207ca963..9fcaa2af1e64a351ff102827782cd2f094f4c20e 100644 (file)
--- 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);