From: Craig Small Date: Sun, 17 Jun 2012 08:19:48 +0000 (+1000) Subject: minor fix for -u fix X-Git-Tag: v3.3.4~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d899453da57624e2ddffcf3ff0137f314ef9d32;p=procps-ng minor fix for -u fix Commit a5d9c40262c2f5f917d5f27c5f052bdbe7066ac1 had one small problem. In that function its *argc not argc. This stops pgrep with no commands from segfaulting, thankyou dejagnu!! Signed-Off-By: Craig Small --- diff --git a/pgrep.c b/pgrep.c index 5b39c0c8..3377175f 100644 --- a/pgrep.c +++ b/pgrep.c @@ -564,7 +564,7 @@ int signal_option(int *argc, char **argv) { int sig; int i = 1; - if (argc > 2 && argv[1][0] == '-') { + if (*argc > 2 && argv[1][0] == '-') { sig = signal_name_to_number(argv[i] + 1); if (sig == -1 && isdigit(argv[1][1])) sig = atoi(argv[1] + 1);