From aad548b031a5a6986ecb28e3cf253ce964817996 Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Mon, 26 Nov 2007 14:01:24 +0000 Subject: [PATCH] Clean up fix for [1837985] "shell" command causes segfault git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@790 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/cmd/shell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]);