Make use of ZERO_STRUCT instead of memset in namequery.c
authorVolker Lendecke <vl@samba.org>
Sat, 29 Mar 2008 16:20:15 +0000 (17:20 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 14 Apr 2008 11:13:46 +0000 (13:13 +0200)
source/libsmb/namequery.c

index 0191bf76187cd98226bc510f036efe7771c1f8b0..893c9265fd241b07a21fadbb406fe968b08a9964 100644 (file)
@@ -1270,7 +1270,7 @@ static NTSTATUS resolve_hosts(const char *name, int name_type,
                        continue;
                }
 
                        continue;
                }
 
-               memset(&ss, '\0', sizeof(ss));
+               ZERO_STRUCT(ss);
                memcpy(&ss, res->ai_addr, res->ai_addrlen);
 
                *return_count += 1;
                memcpy(&ss, res->ai_addr, res->ai_addrlen);
 
                *return_count += 1;