libdl: Add a comment to the previous fix.

The fix is ref #2191.
This commit is contained in:
Chris Johns
2014-11-20 08:38:28 +11:00
parent 90f65007e9
commit 80590a8ecf

View File

@@ -61,6 +61,9 @@ 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);
/*
* Only zero the memory if asked to and the allocation was successful.
*/
if (address && zero)
memset (address, 0, size);