diff --git a/redis-cli.c b/redis-cli.c index 22a09e796..5410f026b 100644 --- a/redis-cli.c +++ b/redis-cli.c @@ -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)) {