diff options
author | Andre Heinecke <[email protected]> | 2019-10-28 15:00:29 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2019-10-28 15:02:22 +0000 |
commit | fe2892618c20cd40c342cce26ffb6ac4644fd3c3 (patch) | |
tree | 76da5340c74385356a6babb8098fe73c2befaf53 | |
parent | doc: Remove cruft from a doc entry. (diff) | |
download | gpgme-fe2892618c20cd40c342cce26ffb6ac4644fd3c3.tar.gz gpgme-fe2892618c20cd40c342cce26ffb6ac4644fd3c3.zip |
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.c | 2 |
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); |