This commit is contained in:
Burkov Egor 2025-04-03 23:38:20 +01:00 committed by GitHub
commit 12c6913c51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {