diff --git a/src/legacy-gui.cpp b/src/legacy-gui.cpp index 29b4482..c6e7e1c 100644 --- a/src/legacy-gui.cpp +++ b/src/legacy-gui.cpp @@ -699,7 +699,7 @@ public: const char *n = fl_input( "Enter executable name" ); - if ( !n ) + if ( !n || !*n ) return; char *name = strdup( n ); @@ -722,7 +722,7 @@ public: { const char *n = fl_input( "Enter executable name" ); - if ( !n ) + if ( !n || !*n ) return; char *name = strdup( n );