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.
pull/119/head
Wesley Merkel 2014-04-17 05:06:48 -06:00
parent de7c7ae0b8
commit af83098a15
1 changed files with 1 additions and 1 deletions

View File

@ -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 );