summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@gnupg.org>2019-10-28 16:00:29 +0100
committerAndre Heinecke <aheinecke@gnupg.org>2019-10-28 16:02:22 +0100
commitfe2892618c20cd40c342cce26ffb6ac4644fd3c3 (patch)
tree76da5340c74385356a6babb8098fe73c2befaf53
parent2b2977c215fe9e5bbd6ac6309d500445cd3ba7d7 (diff)
downloadgpgme-fe2892618c20cd40c342cce26ffb6ac4644fd3c3.tar.gz
core,w32: Initialize dbg_help for socket debugging
* src/w32-io.c (_gpgme_io_select): Initialize dbg_help. -- This fixes a crash on Windows because dbg_help might be used unitialized.
-rw-r--r--src/w32-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32-io.c b/src/w32-io.c
index c5c21f59..80978f9a 100644
--- a/src/w32-io.c
+++ b/src/w32-io.c
@@ -1643,7 +1643,7 @@ _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock)
int i;
int any;
int count;
- void *dbg_help;
+ void *dbg_help = NULL;
TRACE_BEG (DEBUG_SYSIO, "_gpgme_io_select", fds,
"nfds=%u, nonblock=%u", nfds, nonblock);