From: Michael Gernoth Date: Mon, 8 Oct 2007 13:43:55 +0000 (+0200) Subject: config-parser fix from Reimar Doeffinger X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver/commitdiff_plain/cdce4d4dfe8bc11405ff186cc523989c68bbc1b4?ds=sidebyside;hp=e9a331c74517c7ba860ffd5a33eac54ef311bace config-parser fix from Reimar Doeffinger --- diff --git a/config.c b/config.c index 78de78b..a39902e 100644 --- a/config.c +++ b/config.c @@ -143,7 +143,7 @@ static void read_config() { vid = 0; vid = strtol(pbuf, NULL, 16); - if (!num) { + if (!vid) { PARSEERROR; continue; } @@ -158,7 +158,7 @@ static void read_config() { pid = 0; pid = strtol(pbuf, NULL, 16); - if (!num) { + if (!pid) { PARSEERROR; continue; }