util: Remove duplicate assignments of rv to NULL
This commit is contained in:
parent
853d5f3764
commit
3818a59541
|
@ -36,9 +36,6 @@ char *get_resolvconf_addr(void)
|
||||||
rv = addr;
|
rv = addr;
|
||||||
pclose(fp);
|
pclose(fp);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
rv = NULL;
|
|
||||||
|
|
||||||
if ((fp = fopen("/etc/resolv.conf", "r")) == NULL)
|
if ((fp = fopen("/etc/resolv.conf", "r")) == NULL)
|
||||||
err(1, "/etc/resolv.conf");
|
err(1, "/etc/resolv.conf");
|
||||||
|
|
||||||
|
@ -58,7 +55,6 @@ char *get_resolvconf_addr(void)
|
||||||
ULONG buflen;
|
ULONG buflen;
|
||||||
DWORD ret;
|
DWORD ret;
|
||||||
|
|
||||||
rv = NULL;
|
|
||||||
fixed_info = malloc(sizeof(FIXED_INFO));
|
fixed_info = malloc(sizeof(FIXED_INFO));
|
||||||
buflen = sizeof(FIXED_INFO);
|
buflen = sizeof(FIXED_INFO);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue