mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 05:25:34 +00:00
Merge 2c6bac2f97
into 770c4b8042
This commit is contained in:
commit
12c6913c51
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ usrc_writeFileNameGeneratedBy(
|
|||
|
||||
time(&t);
|
||||
lt=localtime(&t);
|
||||
if(generator==nullptr) {
|
||||
if(generator==nullptr && lt!=nullptr) {
|
||||
strftime(buffer, sizeof(buffer), "%Y-%m-%d", lt);
|
||||
fprintf(f, pattern, prefix, prefix, filename, prefix, prefix, buffer);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue