mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
Fixup segfault on 'kill -q'
This commit is contained in:
parent
c774efe317
commit
8f4ef159f0
@ -32,8 +32,8 @@
|
||||
#include <unistd.h>
|
||||
#include "busybox.h"
|
||||
|
||||
static const int KILL = 0;
|
||||
static const int KILLALL = 1;
|
||||
#define KILL 0
|
||||
#define KILLALL 1
|
||||
|
||||
extern int kill_main(int argc, char **argv)
|
||||
{
|
||||
@ -91,7 +91,7 @@ extern int kill_main(int argc, char **argv)
|
||||
quiet++;
|
||||
argv++;
|
||||
argc--;
|
||||
if(argv[1][0] != '-'){
|
||||
if(argc<2 || argv[1][0] != '-'){
|
||||
goto do_it_now;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user