diff options
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 1ee1f2d..c18232e 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -285,7 +285,7 @@ creturn (cygheap_types x, cygheap_entry * c, unsigned len) { if (!c) { - __seterrno (); + set_errno (ENOMEM); return NULL; } c->type = x; @@ -348,8 +348,10 @@ ccalloc (cygheap_types x, DWORD n, DWORD size) c = (cygheap_entry *) _cmalloc (sizeof_cygheap (n)); if (c) memset (c->data, 0, n); +#ifdef DEBUGGING if (!c) system_printf ("ccalloc returned NULL"); +#endif return creturn (x, c, n); } |