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:
Ollivier Robert 1999-11-18 23:04:38 +00:00
parent 9ed3b901be
commit b5ee3fc069

View File

@ -242,6 +242,8 @@ int run (int cmd, char *arg)
{
int l, r, rc;
if (arg == NULL)
return 0;
switch (cmd) {
case CMD_QUIT: