* hookapi.cc (hook_or_detect_cygwin): Prevent i from being considered
uninitialized by gcc.
This commit is contained in:
parent
7a5f322c35
commit
27239c6372
@ -1,3 +1,8 @@
|
||||
2011-02-09 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* hookapi.cc (hook_or_detect_cygwin): Prevent i from being considered
|
||||
uninitialized by gcc.
|
||||
|
||||
2011-02-09 Christopher Faylor <me+cygwin@cgf.cx>
|
||||
|
||||
* exception.h: Remove DEBUG_EXCEPTION left over debugging ifdef.
|
||||
|
@ -252,7 +252,7 @@ hook_or_detect_cygwin (const char *name, const void *fn, WORD& subsys)
|
||||
fh.origfn = NULL;
|
||||
fh.hookfn = fn;
|
||||
char *buf = (char *) alloca (strlen (name) + sizeof ("_64"));
|
||||
int i;
|
||||
int i = 0;
|
||||
// Iterate through each import descriptor, and redirect if appropriate
|
||||
for (PIMAGE_IMPORT_DESCRIPTOR pd = pdfirst; pd->FirstThunk; pd++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user