1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Add missing initalizations of lastif in rep_getifaddr implementations.

Michael
This commit is contained in:
Michael Adam 2008-02-22 00:24:11 +01:00
parent a2230ccc17
commit 65710e752f

View File

@ -84,7 +84,8 @@ int rep_getifaddrs(struct ifaddrs **ifap)
struct in_addr ipaddr;
struct in_addr nmask;
char *iname;
struct ifaddrs *curif, *lastif;
struct ifaddrs *curif;
struct ifaddrs *lastif = NULL;
*ifap = NULL;
@ -168,7 +169,8 @@ int rep_getifaddrs(struct ifaddrs **ifap)
struct in_addr ipaddr;
struct in_addr nmask;
char *iname;
struct ifaddrs *curif, *lastif;
struct ifaddrs *curif;
struct ifaddrs *lastif = NULL;
*ifap = NULL;
@ -268,7 +270,8 @@ int rep_getifaddrs(struct ifaddrs **ifap)
struct in_addr ipaddr;
struct in_addr nmask;
char *iname;
struct ifaddrs *curif, *lastif;
struct ifaddrs *curif;
struct ifaddrs *lastif = NULL;
*ifap = NULL;