diff --git a/jtag/src/cmd/shell.c b/jtag/src/cmd/shell.c index ee1db899..b7f7216e 100644 --- a/jtag/src/cmd/shell.c +++ b/jtag/src/cmd/shell.c @@ -25,7 +25,6 @@ #include "sysdep.h" #include -#include #include #include @@ -61,7 +60,7 @@ cmd_shell_run( char *params[] ) if(shell_cmd == NULL) { printf( _("Out of memory\n") ); - exit -1; + return -1; }; strcpy(shell_cmd, params[1]);