From 8315bc148cc9a1527038a02915f698c9fe5d8c0e Mon Sep 17 00:00:00 2001 From: stig Date: Tue, 29 Sep 2009 06:57:11 +0000 Subject: [PATCH] Initialize magic to avoid a warning about a possible uninitialized read. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30188 f5534014-38df-0310-8fa8-9805f1628bb7 --- dumpcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumpcap.c b/dumpcap.c index d3206ee43d..9d981f5df3 100644 --- a/dumpcap.c +++ b/dumpcap.c @@ -823,7 +823,7 @@ cap_pipe_open_live(char *pipename, struct pcap_hdr *hdr, loop_data *ld, wchar_t *err_str; #endif #endif - guint32 magic; + guint32 magic = 0; #ifndef _WIN32 ld->cap_pipe_fd = -1; -- 2.34.1