mdnssd: remove valgrind warning

Change-Id: I143bd3923e37af4ecbda5ad6d40a6b29f2118e6a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
This commit is contained in:
Fawzi Mohamed
2012-06-06 11:37:04 +02:00
parent 32f25fcfc1
commit 7307d2eafb

View File

@@ -833,6 +833,7 @@ mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct
// Allocate the interface structure itself. // Allocate the interface structure itself.
intf = (PosixNetworkInterface*)malloc(sizeof(*intf)); intf = (PosixNetworkInterface*)malloc(sizeof(*intf));
memset(intf, 0, sizeof(*intf));
if (intf == NULL) { assert(0); err = ENOMEM; } if (intf == NULL) { assert(0); err = ENOMEM; }
// And make a copy of the intfName. // And make a copy of the intfName.