diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7927bcd79..9043b7d93 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2012-03-09 Corinna Vinschen + + * hookapi.cc (find_first_notloaded_dll): Fix a compiler warning. + 2012-03-09 Corinna Vinschen * hookapi.cc (rvadelta): Add parameter to return maximum available diff --git a/winsup/cygwin/hookapi.cc b/winsup/cygwin/hookapi.cc index 6c4d38fa3..a56538dc6 100644 --- a/winsup/cygwin/hookapi.cc +++ b/winsup/cygwin/hookapi.cc @@ -226,7 +226,7 @@ find_first_notloaded_dll (path_conv& pc) importRVA -= delta; DWORD offset = 0; - char *map; + char *map = NULL; if (importRVA + importRVAMaxSize > wincap.allocation_granularity ()) { offset = rounddown (importRVA, wincap.allocation_granularity ());