summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-01 23:01:16 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-01 23:01:40 +0200
commit34d29a0d710f94a2ac4ec660547c963af25b2512 (patch)
treeadd0ac38c5efbb662fcfd0efdbef776ef1dd2a1d
parent39e39b1b2ccdc9f1136688153f7370bfa641fe88 (diff)
downloadsocket_wrapper-34d29a0d710f94a2ac4ec660547c963af25b2512.tar.gz
socket_wrapper-34d29a0d710f94a2ac4ec660547c963af25b2512.tar.xz
socket_wrapper-34d29a0d710f94a2ac4ec660547c963af25b2512.zip
src: Initialize const variables of socket_wrapper_pcap_file().
-rw-r--r--src/socket_wrapper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 240f3f6..b336514 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -1214,10 +1214,10 @@ 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_frame f;
- static const union swrap_packet_ip i;
- static const union swrap_packet_payload p;
+ static const struct swrap_file_hdr h = {0};
+ static const struct swrap_packet_frame f = {0};
+ static const union swrap_packet_ip i = {{0}};
+ static const union swrap_packet_payload p = {{0}};
if (initialized == 1) {
return s;