Skip to content

Commit 303b4cc

Browse files
committed
code style
1 parent 343cdb6 commit 303b4cc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ext/date/php_date.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,13 +1946,15 @@ static zend_string *date_create_tz_offset_str(timelib_sll offset)
19461946
int seconds = offset % 60;
19471947
size_t size;
19481948
const char *format;
1949+
19491950
if (seconds == 0) {
19501951
size = sizeof("+05:00");
19511952
format = "%c%02d:%02d";
19521953
} else {
19531954
size = sizeof("+05:00:01");
19541955
format = "%c%02d:%02d:%02d";
19551956
}
1957+
19561958
zend_string *tmpstr = zend_string_alloc(size - 1, 0);
19571959

19581960
/* Note: if seconds == 0, the seconds argument will be excessive and therefore ignored. */

0 commit comments

Comments
 (0)