Browse Source

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 10 years ago
parent
commit
af83098a15
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      session-manager/src/session-manager.C

+ 1
- 1
session-manager/src/session-manager.C 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 );


Loading…
Cancel
Save