]> git.ipfire.org Git - thirdparty/pciutils.git/blobdiff - setpci.c
One more fix for the syntax error checks in setpci argument parser.
[thirdparty/pciutils.git] / setpci.c
index 21858bdfdddec8be1a9f674bdd777b1d88b2c32f..97740e8c2168c0c3f534b57571a7501a8f15c49c 100644 (file)
--- 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)