| 523 | } |
| 524 | |
| 525 | void addReplyStatusFormat(client *c, const char *fmt, ...) { |
| 526 | va_list ap; |
| 527 | va_start(ap,fmt); |
| 528 | sds s = sdscatvprintf(sdsempty(),fmt,ap); |
| 529 | va_end(ap); |
| 530 | addReplyStatusLength(c,s,sdslen(s)); |
| 531 | sdsfree(s); |
| 532 | } |
| 533 | |
| 534 | /* Sometimes we are forced to create a new reply node, and we can't append to |
| 535 | * the previous one, when that happens, we wanna try to trim the unused space |
no test coverage detected