summaryrefslogtreecommitdiff
path: root/source3
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:36:20 +0100
commite2ec7931ff157d9468ee31009db1adb0d9acfd6d (patch)
tree39915f9a05bc0f41d3be8d7b5c2fd5b4fe16aa32 /source3
parent7428f00d22ea0b006fd2c69d6533b534f8e41381 (diff)
downloadsamba-e2ec7931ff157d9468ee31009db1adb0d9acfd6d.tar.gz
samba-e2ec7931ff157d9468ee31009db1adb0d9acfd6d.tar.bz2
samba-e2ec7931ff157d9468ee31009db1adb0d9acfd6d.zip
Add missing initalizations of lastif in rep_getifaddr implementations.
Michael (This used to be commit 65710e752f72070cb911867ff9f31f91904ca5c0)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/replace/getifaddrs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/replace/getifaddrs.c b/source3/lib/replace/getifaddrs.c
index f12062bd8e..60049caa99 100644
--- a/source3/lib/replace/getifaddrs.c
+++ b/source3/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;