summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-22 00:24:11 +0100
committerMichael Adam <obnox@samba.org>2008-02-22 00:40:33 +0100
commitf86ee1f3c6398cdc2320c968ade7058180804ee4 (patch)
treede485c404fdfcfb2ef9bdbd870f5416cb1a425e9 /source4/lib
parentc513546cda3d453748c88589b83015489fc6f14f (diff)
downloadsamba-f86ee1f3c6398cdc2320c968ade7058180804ee4.tar.gz
samba-f86ee1f3c6398cdc2320c968ade7058180804ee4.tar.bz2
samba-f86ee1f3c6398cdc2320c968ade7058180804ee4.zip
Add missing initalizations of lastif in rep_getifaddr implementations.
Michael (cherry picked from commit 65710e752f72070cb911867ff9f31f91904ca5c0) (This used to be commit 5bd613a2cda5d287706f2ce72f4ee08a7fa45b72)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace/getifaddrs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/lib/replace/getifaddrs.c b/source4/lib/replace/getifaddrs.c
index f12062bd8e..60049caa99 100644
--- a/source4/lib/replace/getifaddrs.c
+++ b/source4/lib/replace/getifaddrs.c
@@ -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;