diff options
Diffstat (limited to 'winsup/cygwin/debug.cc')
-rw-r--r-- | winsup/cygwin/debug.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/debug.cc b/winsup/cygwin/debug.cc index e25dc1ca8..ebe207ce6 100644 --- a/winsup/cygwin/debug.cc +++ b/winsup/cygwin/debug.cc @@ -228,7 +228,7 @@ newh () goto out; /* All used up??? */ - if ((hl = (handle_list *)malloc (sizeof *hl)) != NULL) + if ((hl = (handle_list *) malloc (sizeof *hl)) != NULL) { memset (hl, 0, sizeof (*hl)); hl->allocated = TRUE; @@ -248,6 +248,7 @@ add_handle (const char *func, int ln, HANDLE h, const char *name) if ((hl = find_handle (h))) { + hl = hl->next; system_printf ("%s:%d - multiple attempts to add handle %s<%p>", func, ln, name, h); system_printf (" previously allocated by %s:%d(%s<%p>)", |