1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-25 06:26:05 +03:00

util: Remove duplicate assignments of rv to NULL

This commit is contained in:
Erik Ekman 2021-08-25 22:05:19 +02:00
parent 853d5f3764
commit 3818a59541

View File

@ -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);