ifchd.c: If resolv_conf_fd < 0, it is invalid. -1 is the explicit
uninitialized value, but there is no need to limit the guard to -1.
This commit is contained in:
parent
f4a2a487d6
commit
971c6085d8
@ -92,7 +92,7 @@ static void write_resolve_conf(void)
|
|||||||
off_t off;
|
off_t off;
|
||||||
char buf[MAX_BUF];
|
char buf[MAX_BUF];
|
||||||
|
|
||||||
if (resolv_conf_fd == -1)
|
if (resolv_conf_fd < 0)
|
||||||
return;
|
return;
|
||||||
if (strlen(cl.namesvrs) == 0)
|
if (strlen(cl.namesvrs) == 0)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user