config-parser fix from Reimar Doeffinger
This commit is contained in:
parent
e9a331c745
commit
cdce4d4dfe
4
config.c
4
config.c
@ -143,7 +143,7 @@ static void read_config() {
|
|||||||
|
|
||||||
vid = 0;
|
vid = 0;
|
||||||
vid = strtol(pbuf, NULL, 16);
|
vid = strtol(pbuf, NULL, 16);
|
||||||
if (!num) {
|
if (!vid) {
|
||||||
PARSEERROR;
|
PARSEERROR;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ static void read_config() {
|
|||||||
|
|
||||||
pid = 0;
|
pid = 0;
|
||||||
pid = strtol(pbuf, NULL, 16);
|
pid = strtol(pbuf, NULL, 16);
|
||||||
if (!num) {
|
if (!pid) {
|
||||||
PARSEERROR;
|
PARSEERROR;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user