summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/mstats.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/mstats.c')
-rw-r--r--newlib/libc/stdlib/mstats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/mstats.c b/newlib/libc/stdlib/mstats.c
index c1628957a..a2ae95929 100644
--- a/newlib/libc/stdlib/mstats.c
+++ b/newlib/libc/stdlib/mstats.c
@@ -135,6 +135,7 @@ _DEFUN (_mstats_r, (ptr, s),
struct _reent *ptr _AND
char *s)
{
+ _REENT_SMALL_CHECK_INIT(_stderr_r (ptr));
fiprintf (_stderr_r (ptr), "Memory allocation statistics %s\n", s);
_malloc_stats_r (ptr);
}