Some C++ warnings
[samba.git] / source3 / lib / socket_wrapper / socket_wrapper.c
index 3a72c5a74a0ecd0826c2b751110eaaa857f1d98c..a84c460114779296b2dba66908de551041a27cca 100644 (file)
@@ -571,8 +571,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;