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:
Nicholas J. Kain 2014-03-12 20:58:27 -04:00
parent f4a2a487d6
commit 971c6085d8

View File

@ -92,7 +92,7 @@ static void write_resolve_conf(void)
off_t off;
char buf[MAX_BUF];
if (resolv_conf_fd == -1)
if (resolv_conf_fd < 0)
return;
if (strlen(cl.namesvrs) == 0)
return;