summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hiredis.c b/hiredis.c
index 36ee6d9..a2d8515 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -564,7 +564,7 @@ int redisvFormatCommand(char **target, const char *format, va_list ap) {
interpolated = 1;
break;
case '%':
- cmd = sdscat(cmd,"%");
+ current = sdscat(current,"%");
break;
}
c++;