diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/libdl/rtl-allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libdl/rtl-allocator.c b/cpukit/libdl/rtl-allocator.c index b845013fd8..26044c2c49 100644 --- a/cpukit/libdl/rtl-allocator.c +++ b/cpukit/libdl/rtl-allocator.c @@ -61,7 +61,7 @@ rtems_rtl_alloc_new (rtems_rtl_alloc_tag_t tag, size_t size, bool zero) printf ("rtl: alloc: new: %s addr=%p size=%zu\n", rtems_rtl_trace_tag_label (tag), address, size); - if (zero) + if (address && zero) memset (address, 0, size); return address; |