summaryrefslogtreecommitdiff
path: root/ace/Malloc.i
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Malloc.i')
-rw-r--r--ace/Malloc.i3
1 files changed, 1 insertions, 2 deletions
diff --git a/ace/Malloc.i b/ace/Malloc.i
index a257f7bc28b..615de4a2873 100644
--- a/ace/Malloc.i
+++ b/ace/Malloc.i
@@ -20,7 +20,7 @@ ACE_INLINE void *
ACE_New_Allocator::calloc (size_t nbytes,
char initial_value)
{
- char *ptr;
+ char *ptr = 0;
ACE_NEW_RETURN (ptr, char[nbytes], 0);
@@ -232,4 +232,3 @@ ACE_Static_Allocator_Base::ACE_Static_Allocator_Base (char *buffer,
offset_ (0)
{
}
-