diff options
author | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-04-26 17:57:51 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-04-26 17:57:51 +0200 |
commit | 5444b1728ba7cfc55e85fd3022b6e88c9441327c (patch) | |
tree | 3009ac597dd206aa4bfaa50725ed6e7542119877 /src/UriMemory.c | |
parent | 4c6be44409a51e938aa1c9e4d920348d5317a3d2 (diff) | |
parent | 1920f1b489a54e8ab97a3e24b1bab64831e32b53 (diff) |
Update upstream source from tag 'upstream/0.9.2'
Update to upstream version '0.9.2'
with Debian dir c23d6b5efa0b01b1b44e112907143c23417ebdd5
Diffstat (limited to 'src/UriMemory.c')
-rw-r--r-- | src/UriMemory.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/UriMemory.c b/src/UriMemory.c index 5e6bcc4..d942186 100644 --- a/src/UriMemory.c +++ b/src/UriMemory.c @@ -42,11 +42,9 @@ * Holds memory manager implementation. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif +#include <config.h> -#if HAVE_REALLOCARRAY +#ifdef HAVE_REALLOCARRAY # ifndef _GNU_SOURCE # define _GNU_SOURCE 1 # endif @@ -97,7 +95,7 @@ static void * uriDefaultRealloc(UriMemoryManager * URI_UNUSED(memory), static void * uriDefaultReallocarray(UriMemoryManager * URI_UNUSED(memory), void * ptr, size_t nmemb, size_t size) { -#if HAVE_REALLOCARRAY +#ifdef HAVE_REALLOCARRAY return reallocarray(ptr, nmemb, size); #else const size_t total_size = nmemb * size; |