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:
parent
a2230ccc17
commit
65710e752f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user