summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2009-02-01 15:52:19 +0100
committerMartin Mares <mj@ucw.cz>2009-02-01 15:52:19 +0100
commit607fd2418ecf40c3866fde976a2d288c2d2a104e (patch)
treeae9b97f7693f2142815168ec0d8925caf984445c
parentf6523e28bb9ee846d349f653c9f4c58d1fd7c975 (diff)
downloadpciutils-607fd2418ecf40c3866fde976a2d288c2d2a104e.tar.gz
One more fix for the syntax error checks in setpci argument parser.
-rw-r--r--setpci.c6
1 files changed, 5 insertions, 1 deletions
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)