Avoid segfault from empty 'Open' dialog
Fl_Tree::find_item() segfaults when called with an empty string. This may be an NTK/FLTK problem, but this will fix things in the meantime.
This commit is contained in:
parent
de7c7ae0b8
commit
af83098a15
|
@ -585,7 +585,7 @@ public:
|
|||
{
|
||||
const char *name = fl_input( "Open Session", NULL );
|
||||
|
||||
if ( ! name )
|
||||
if ( ! name || *name == '\0' )
|
||||
return;
|
||||
|
||||
Fl_Tree_Item *item = session_browser->find_item( name );
|
||||
|
|
Loading…
Reference in New Issue