summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hiredis.c b/hiredis.c
index c0968ed..a3b3edd 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -485,6 +485,8 @@ int redisvFormatCommand(char **target, const char *format, va_list ap) {
touched = 1;
c++;
+ if (*c == '\0')
+ break;
}
c++;
}