diff --git a/src/extlib/ib_util.cpp b/src/extlib/ib_util.cpp index f719bc2e83..86616f2359 100644 --- a/src/extlib/ib_util.cpp +++ b/src/extlib/ib_util.cpp @@ -36,5 +36,5 @@ extern "C" void FB_DLL_EXPORT ib_util_init(void* (*aAllocFunc)(long)) extern "C" VoidPtr FB_DLL_EXPORT ib_util_malloc(long size) { - return allocFunc ? allocFunc(size) : NULL; + return allocFunc ? allocFunc(size) : malloc(size); }