]> git.saurik.com Git - redis.git/blobdiff - src/t_string.c
Use specialized function to add multi bulk reply length
[redis.git] / src / t_string.c
index 3b8a39bbec7100d20622411c2376eda49565a2fa..411687a5e219e31d1b593ee1d365b4a2f90d52f5 100644 (file)
@@ -79,7 +79,7 @@ void getsetCommand(redisClient *c) {
 void mgetCommand(redisClient *c) {
     int j;
 
-    addReplySds(c,sdscatprintf(sdsempty(),"*%d\r\n",c->argc-1));
+    addReplyMultiBulkLen(c,c->argc-1);
     for (j = 1; j < c->argc; j++) {
         robj *o = lookupKeyRead(c->db,c->argv[j]);
         if (o == NULL) {