fix combo_box_parse_options

This commit is contained in:
lixianjing 2019-06-28 08:28:04 +08:00
parent 5780d0a1fc
commit e2ba66f5f4

View File

@ -85,7 +85,7 @@ ret_t combo_box_parse_options(widget_t* widget, const char* str) {
tokenizer_t tokenizer;
tokenizer_t* t = &tokenizer;
combo_box_t* combo_box = COMBO_BOX(widget);
return_value_if_fail(combo_box != NULL, RET_BAD_PARAMS);
return_value_if_fail(combo_box != NULL && str != NULL, RET_BAD_PARAMS);
combo_box_reset_options(widget);
combo_box->options = tk_strdup(str);