summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornot-a-robot <not-a-robot@rediger.net>2016-04-20 17:07:21 +0200
committernot-a-robot <not-a-robot@rediger.net>2016-04-20 17:07:21 +0200
commitbe2c4272c434c21149f8603a6f61e5e348539ebe (patch)
treec7ae206c33f0f1de8638cf7f5d978019d2eee34e
parentf201e79bf45c948cb38b6686af1a56bbfe79c5da (diff)
parentf51fdfb7afd285db9ac9a0684e085a3e5013b70d (diff)
Auto merge of #413 - charsyam:feature/remove-unused-code, r=badboy
remove unnecessory code remove some unnecessory code. It is not used any other parts
-rw-r--r--sds.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sds.c b/sds.c
index e3dd673..b31ccf2 100644
--- a/sds.c
+++ b/sds.c
@@ -577,14 +577,12 @@ sds sdscatprintf(sds s, const char *fmt, ...) {
* %% - Verbatim "%" character.
*/
sds sdscatfmt(sds s, char const *fmt, ...) {
- size_t initlen = sdslen(s);
const char *f = fmt;
int i;
va_list ap;
va_start(ap,fmt);
- f = fmt; /* Next format specifier byte to process. */
- i = initlen; /* Position of the next byte to write to dest str. */
+ i = sdslen(s); /* Position of the next byte to write to dest str. */
while(*f) {
char next, *str;
size_t l;