Some C++ warnings
[samba.git] / source4 / 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;