allow null value
This commit is contained in:
parent
5fea127518
commit
d5336dd38c
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue