summaryrefslogtreecommitdiff
path: root/libgcompat/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/malloc.c')
-rw-r--r--libgcompat/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcompat/malloc.c b/libgcompat/malloc.c
index 3f54a06..5a82bc4 100644
--- a/libgcompat/malloc.c
+++ b/libgcompat/malloc.c
@@ -64,7 +64,7 @@ alias(__libc_malloc, __malloc);
void *__libc_memalign(size_t align, size_t len)
{
- void *result;
+ void *result = NULL;
if (posix_memalign(&result, align, len) != 0)
return NULL;
return result;