From 607fd2418ecf40c3866fde976a2d288c2d2a104e Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 1 Feb 2009 15:52:19 +0100 Subject: [PATCH] One more fix for the syntax error checks in setpci argument parser. --- setpci.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.39.5