Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/malloc_wrapper.cc')
-rw-r--r--winsup/cygwin/malloc_wrapper.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/malloc_wrapper.cc b/winsup/cygwin/malloc_wrapper.cc
index 17347ae3d..68c851440 100644
--- a/winsup/cygwin/malloc_wrapper.cc
+++ b/winsup/cygwin/malloc_wrapper.cc
@@ -241,7 +241,10 @@ mallinfo ()
{
struct mallinfo m;
if (!use_internal)
- set_errno (ENOSYS);
+ {
+ memset (&m, 0, sizeof m);
+ set_errno (ENOSYS);
+ }
else
{
__malloc_lock ();