mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -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;
|
int fd, j, retval = 0;
|
||||||
sds cmd;
|
sds cmd;
|
||||||
|
|
||||||
config.raw_output = (rc->flags & CMDFLAG_RAWOUTPUT);
|
|
||||||
if (!rc) {
|
if (!rc) {
|
||||||
fprintf(stderr,"Unknown command '%s'\n",argv[0]);
|
fprintf(stderr,"Unknown command '%s'\n",argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
config.raw_output = (rc->flags & CMDFLAG_RAWOUTPUT);
|
||||||
|
|
||||||
if ((rc->arity > 0 && argc != rc->arity) ||
|
if ((rc->arity > 0 && argc != rc->arity) ||
|
||||||
(rc->arity < 0 && argc < -rc->arity)) {
|
(rc->arity < 0 && argc < -rc->arity)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user