diff src/gmalloc.c @ 86:364816949b59 r20-0b93

Import from CVS: tag r20-0b93
author cvs
date Mon, 13 Aug 2007 09:09:02 +0200
parents 1ce6082ce73f
children 821dec489c24
line wrap: on
line diff
--- a/src/gmalloc.c	Mon Aug 13 09:08:31 2007 +0200
+++ b/src/gmalloc.c	Mon Aug 13 09:09:02 2007 +0200
@@ -556,13 +556,13 @@
     return NULL;
 #endif
 
-  if (__malloc_hook != NULL)
-    return (*__malloc_hook) (size);
-
   if (!__malloc_initialized)
     if (!initialize ())
       return NULL;
 
+  if (__malloc_hook != NULL)
+    return (*__malloc_hook) (size);
+
 #ifdef SUNOS_LOCALTIME_BUG
   /* Workaround for localtime() allocating 8 bytes and writing 9 bug... */
   if (size < 16)