Browse Source

Prevent adding clients with no executable name

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.4.0
falkTX 4 years ago
parent
commit
9532b2a3a4
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/legacy-gui.cpp

+ 2
- 2
src/legacy-gui.cpp View File

@@ -699,7 +699,7 @@ public:


const char *n = fl_input( "Enter executable name" ); const char *n = fl_input( "Enter executable name" );
if ( !n )
if ( !n || !*n )
return; return;
char *name = strdup( n ); char *name = strdup( n );
@@ -722,7 +722,7 @@ public:
{ {
const char *n = fl_input( "Enter executable name" ); const char *n = fl_input( "Enter executable name" );
if ( !n )
if ( !n || !*n )
return; return;
char *name = strdup( n ); char *name = strdup( n );


Loading…
Cancel
Save