| 654 | } |
| 655 | |
| 656 | void addReplyStatusFormat(client *c, const char *fmt, ...) { |
| 657 | va_list ap; |
| 658 | va_start(ap,fmt); |
| 659 | sds s = sdscatvprintf(sdsempty(),fmt,ap); |
| 660 | va_end(ap); |
| 661 | addReplyStatusLength(c,s,sdslen(s)); |
| 662 | sdsfree(s); |
| 663 | } |
| 664 | |
| 665 | /* Sometimes we are forced to create a new reply node, and we can't append to |
| 666 | * the previous one, when that happens, we wanna try to trim the unused space |
no test coverage detected