Fix initialization warnings.
authorJeremy Allison <jra@samba.org>
Fri, 21 Dec 2007 20:11:23 +0000 (12:11 -0800)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Jun 2008 07:13:32 +0000 (09:13 +0200)
Jeremy.
(cherry picked from commit 832c093830cb3978641be3d87670fa900105da25)

source/lib/socket_wrapper/socket_wrapper.c

index 22186872d6fed31b4dd26135ea787b4925c4a5b2..336179d837ba9c1a2fa9948206cb1f290b6c3fab 100644 (file)
@@ -698,7 +698,7 @@ static const char *socket_wrapper_pcap_file(void)
        static int initialized = 0;
        static const char *s = NULL;
        static const struct swrap_file_hdr h = { 0, };
-       static const struct swrap_packet p = { 0, };
+       static const struct swrap_packet p = { { 0, }, { { 0, }, { { 0, } } } };
 
        if (initialized == 1) {
                return s;