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
master
Kolja Waschk 17 years ago
parent 6bc9ed85e1
commit aad548b031

@ -25,7 +25,6 @@
#include "sysdep.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
@ -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]);

Loading…
Cancel
Save