From fc449e1c1f9bca82588da69caa230db27bdbdb2c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 12 Jan 2016 15:45:17 +0100 Subject: [PATCH] Initialize handle in dll_load to avoid compiler warning * autoload.cc (dll_load): Initialize h to NULL. Signed-off-by: Corinna Vinschen --- winsup/cygwin/autoload.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 08b218818..8a337be23 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -348,7 +348,7 @@ union retchain static __inline bool dll_load (HANDLE& handle, PWCHAR name) { - HANDLE h; + HANDLE h = NULL; /* On systems supporting LOAD_LIBRARY_SEARCH flags, try to load explicitely from the system dir first. */ -- 2.43.5