forked from qt-creator/qt-creator
mdnssd: remove valgrind warning
Change-Id: I143bd3923e37af4ecbda5ad6d40a6b29f2118e6a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user