aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init.c b/src/init.c
index e84b234..7abb6ff 100644
--- a/src/init.c
+++ b/src/init.c
@@ -171,15 +171,15 @@ _gpgrt_realloc (void *a, size_t n)
if (custom_realloc)
return custom_realloc (a, n);
- if (!a)
- return malloc (n);
-
if (!n)
{
free (a);
return NULL;
}
+ if (!a)
+ return malloc (n);
+
return realloc (a, n);
}