From 7aaaad507060b131ff18d4637ea63499828076d6 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 29 Apr 2010 20:13:23 +0200 Subject: [PATCH] redis-cli minor fix (less segfault is better) --- redis-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {