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.
This commit is contained in:
Andre Heinecke 2019-10-28 16:00:29 +01:00
parent 2b2977c215
commit fe2892618c
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -1643,7 +1643,7 @@ _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock)
int i; int i;
int any; int any;
int count; int count;
void *dbg_help; void *dbg_help = NULL;
TRACE_BEG (DEBUG_SYSIO, "_gpgme_io_select", fds, TRACE_BEG (DEBUG_SYSIO, "_gpgme_io_select", fds,
"nfds=%u, nonblock=%u", nfds, nonblock); "nfds=%u, nonblock=%u", nfds, nonblock);