allow null value

This commit is contained in:
Nishi 2025-12-07 05:21:22 +09:00
commit d5336dd38c
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -370,7 +370,7 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
if(strcmp(key, MwNtitle) == 0) {
MwLLSetTitle(handle->lowlevel, value);
} else {
char* v = MwStringDuplicate(value);
char* v = value == NULL ? NULL : MwStringDuplicate(value);
if(shgeti(handle->text, key) != -1) free(shget(handle->text, key));