From 921e1aa84b15c1cc78568eb7d7e38ffb5af8e176 Mon Sep 17 00:00:00 2001 From: charsyam Date: Wed, 20 Apr 2016 23:15:41 +0900 Subject: remove unused code --- sds.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sds.c b/sds.c index f01247d..c57f614 100644 --- a/sds.c +++ b/sds.c @@ -424,14 +424,12 @@ sds sdscatprintf(sds s, const char *fmt, ...) { */ sds sdscatfmt(sds s, char const *fmt, ...) { struct sdshdr *sh = (void*) (s-(sizeof(struct sdshdr))); - 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; int l; -- cgit v1.2.3