STR #3498: Fl_Check_Browser::add(item) now accepts NULL.
As promised in the docs.
This commit is contained in:
parent
a5d55f2e2d
commit
4deeea317a
@ -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_++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user