Stop run() from dereferencing a NULL pointer when you enter a valid command
then a ^D at the prompt. cdcontrol> play 1 14 cdcontrol> zsh: 40874 segmentation fault (core dumped) /usr/sbin/cdcontrol -f /dev/cd1c
This commit is contained in:
parent
9ed3b901be
commit
b5ee3fc069
@ -242,6 +242,8 @@ int run (int cmd, char *arg)
|
||||
{
|
||||
int l, r, rc;
|
||||
|
||||
if (arg == NULL)
|
||||
return 0;
|
||||
switch (cmd) {
|
||||
|
||||
case CMD_QUIT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user