Skip to content

Commit 1aea777

Browse files
tpuntweltling
authored andcommitted
Use STR_EMPTY_ALLOC macro instead
1 parent 40f14ba commit 1aea777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/date/php_date.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4309,7 +4309,7 @@ static char *date_interval_format(char *format, int format_len, timelib_rel_time
43094309
char buffer[33];
43104310

43114311
if (!format_len) {
4312-
return estrdup("");
4312+
return STR_EMPTY_ALLOC();
43134313
}
43144314

43154315
for (i = 0; i < format_len; i++) {
@@ -4360,7 +4360,7 @@ static char *date_interval_format(char *format, int format_len, timelib_rel_time
43604360
smart_str_0(&string);
43614361

43624362
if (string.c == NULL) {
4363-
return estrdup("");
4363+
return STR_EMPTY_ALLOC();
43644364
}
43654365

43664366
return string.c;

0 commit comments

Comments
 (0)