STR #3498: Fl_Check_Browser::add(item) now accepts NULL.

As promised in the docs.
This commit is contained in:
Matthias Melcher 2019-02-01 19:36:44 +01:00
parent a5d55f2e2d
commit 4deeea317a

View File

@ -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_++;