mirror of
https://github.com/fltk/fltk.git
synced 2026-10-06 12:59:21 +08:00
STR #3498: Fl_Check_Browser::add(item) now accepts NULL.
As promised in the docs.
This commit is contained in:
@@ -175,7 +175,7 @@ int Fl_Check_Browser::add(char *s, int b) {
|
||||
p->prev = 0;
|
||||
p->checked = b;
|
||||
p->selected = 0;
|
||||
p->text = strdup(s);
|
||||
p->text = strdup(s?s:"");
|
||||
|
||||
if (b) {
|
||||
nchecked_++;
|
||||
|
||||
Reference in New Issue
Block a user