diff options
author | Thomas Punt <tpunt@hotmail.co.uk> | 2016-03-24 11:09:59 +0000 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-04-05 11:18:14 +0200 |
commit | 1aea777349f8b86495d23ed7c8c71632c7555e55 (patch) | |
tree | 82e03646f3ce23fbb941f8818c9354320d2eef59 | |
parent | 40f14bad33f428994b4a590dafa8fe4d058f7241 (diff) | |
download | php-git-1aea777349f8b86495d23ed7c8c71632c7555e55.tar.gz |
Use STR_EMPTY_ALLOC macro instead
-rw-r--r-- | ext/date/php_date.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 4bb088881e..750800da4c 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -4309,7 +4309,7 @@ static char *date_interval_format(char *format, int format_len, timelib_rel_time char buffer[33]; if (!format_len) { - return estrdup(""); + return STR_EMPTY_ALLOC(); } for (i = 0; i < format_len; i++) { @@ -4360,7 +4360,7 @@ static char *date_interval_format(char *format, int format_len, timelib_rel_time smart_str_0(&string); if (string.c == NULL) { - return estrdup(""); + return STR_EMPTY_ALLOC(); } return string.c; |