Some C++ warnings
authorStefan Metzmacher <metze@samba.org>
Tue, 10 Jun 2008 07:13:08 +0000 (09:13 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Jun 2008 07:13:08 +0000 (09:13 +0200)
(partialy cherry picked from commit 5ab82d4f574f2a2e2761e9e414c66a70aeffb05d)

metze

source/lib/socket_wrapper/socket_wrapper.c

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