libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 1476b01284de49b49e2fd78dd32278f4601795e7
parent 1226d45eba22faf9d1f776f0d4151601364ca317
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri,  8 Apr 2016 16:31:08 +0000

platform_interface.h: fix possible NULL pointer dereference on Win32

Diffstat:
Msrc/include/platform_interface.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/include/platform_interface.h b/src/include/platform_interface.h @@ -112,8 +112,8 @@ typedef int _MHD_socket_funcs_size; ( (!(r) || ((fd_set*)(r))->fd_count == 0) && \ (!(w) || ((fd_set*)(w))->fd_count == 0) && \ (!(e) || ((fd_set*)(e))->fd_count == 0) ) ? \ - ( (!(t)) ? (Sleep((t)->tv_sec * 1000 + (t)->tv_usec / 1000), 0) : 0 ) : \ - (select((int)0,(r),(w),(e),(t))) + ( (t) ? (Sleep((t)->tv_sec * 1000 + (t)->tv_usec / 1000), 0) : 0 ) : \ + (select((int)0,(r),(w),(e),(t))) #endif #if defined(HAVE_POLL)