diff options
| author | Andreas Schneider <asn@cryptomilk.org> | 2013-11-14 17:49:36 +0100 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2013-11-14 17:49:36 +0100 |
| commit | c307100af04e54067d9bdaa786306b63cf12d442 (patch) | |
| tree | 7d999f9ce16640cbc7c6f52ebac5c5a75415f211 /src | |
| parent | a349fc6586cdb9551abd02618d1e4474839f23be (diff) | |
| download | socket_wrapper-c307100af04e54067d9bdaa786306b63cf12d442.tar.gz socket_wrapper-c307100af04e54067d9bdaa786306b63cf12d442.tar.xz socket_wrapper-c307100af04e54067d9bdaa786306b63cf12d442.zip | |
swrap: Fix wrong initializers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/socket_wrapper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index e9af3e5..0031cb7 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -1232,10 +1232,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 = {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}}; + 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; if (initialized == 1) { return s; |
