config-parser fix from Reimar Doeffinger
authorMichael Gernoth <michael@gernoth.net>
Mon, 8 Oct 2007 13:43:55 +0000 (15:43 +0200)
committerMichael Gernoth <michael@gernoth.net>
Mon, 8 Oct 2007 13:43:55 +0000 (15:43 +0200)
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