]> cvs.zerfleddert.de Git - usb-driver/blobdiff - config.c
declare variables at the beginning of the scope
[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);
 
                                vid = 0;
                                vid = strtol(pbuf, NULL, 16);
-                               if (!num) {
+                               if (!vid) {
                                        PARSEERROR;
                                        continue;
                                }
                                        PARSEERROR;
                                        continue;
                                }
@@ -158,7 +158,7 @@ static void read_config() {
 
                                pid = 0;
                                pid = strtol(pbuf, NULL, 16);
 
                                pid = 0;
                                pid = strtol(pbuf, NULL, 16);
-                               if (!num) {
+                               if (!pid) {
                                        PARSEERROR;
                                        continue;
                                }
                                        PARSEERROR;
                                        continue;
                                }
Impressum, Datenschutz