]> cvs.zerfleddert.de Git - usb-driver/blobdiff - config.c
Let usb-driver work with a no-module kernel by Gyorgy 'nog' Jeney
[usb-driver] / config.c
index 78de78b80b6f087ad3401c7fe958228bdaabbe85..a39902e99e8a04f683f398266f0cc13ffddc94e8 100644 (file)
--- 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;
                                }
Impressum, Datenschutz