mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
redis-cli minor fix (less segfault is better)
This commit is contained in:
parent
dd142b9cd7
commit
7aaaad5070
@ -359,11 +359,11 @@ static int cliSendCommand(int argc, char **argv, int repeat) {
|
||||
int fd, j, retval = 0;
|
||||
sds cmd;
|
||||
|
||||
config.raw_output = (rc->flags & CMDFLAG_RAWOUTPUT);
|
||||
if (!rc) {
|
||||
fprintf(stderr,"Unknown command '%s'\n",argv[0]);
|
||||
return 1;
|
||||
}
|
||||
config.raw_output = (rc->flags & CMDFLAG_RAWOUTPUT);
|
||||
|
||||
if ((rc->arity > 0 && argc != rc->arity) ||
|
||||
(rc->arity < 0 && argc < -rc->arity)) {
|
||||
|
Loading…
Reference in New Issue
Block a user