From: Martin Mares Date: Sun, 1 Feb 2009 14:52:19 +0000 (+0100) Subject: One more fix for the syntax error checks in setpci argument parser. X-Git-Tag: v3.1.2~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=607fd2418ecf40c3866fde976a2d288c2d2a104e;p=pciutils.git One more fix for the syntax error checks in setpci argument parser. --- diff --git a/setpci.c b/setpci.c index 21858bd..97740e8 100644 --- a/setpci.c +++ b/setpci.c @@ -499,7 +499,11 @@ static int parse_x32(char *c, char **stopp, unsigned int *resp) return 0; } else - return 1; + { + if (stopp) + *stopp = NULL; + return 1; + } } static void parse_register(struct op *op, char *base)