From: foobar Date: Thu, 7 Apr 2005 16:22:15 +0000 (+0000) Subject: Fix build when USE_ZEND_ALLOC is 0 X-Git-Tag: php-5.0.1b1~586 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9356d7fc640c891f7fd2f58d0896150d8671eacb;p=php Fix build when USE_ZEND_ALLOC is 0 --- diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h index c35661996c..ac99dcde7d 100644 --- a/Zend/zend_alloc.h +++ b/Zend/zend_alloc.h @@ -172,8 +172,8 @@ char *_strndup(char *s, uint l); #define perealloc_recoverable_rel(ptr, size, persistent) realloc((ptr), (size)) #define pestrdup_rel(s, persistent) strdup(s) -#define safe_estrdup(ptr) ((ptr)?(strdup(ptr)):(empty_string)) -#define safe_estrndup(ptr, len) ((ptr)?(_strndup((ptr), (len))):(empty_string)) +#define safe_estrdup(ptr) ((ptr)?(strdup(ptr)):(STR_EMPTY_ALLOC())) +#define safe_estrndup(ptr, len) ((ptr)?(_strndup((ptr), (len))):(STR_EMPTY_ALLOC())) #endif