diff options
author | not-a-robot <not-a-robot@rediger.net> | 2016-04-20 17:07:21 +0200 |
---|---|---|
committer | not-a-robot <not-a-robot@rediger.net> | 2016-04-20 17:07:21 +0200 |
commit | be2c4272c434c21149f8603a6f61e5e348539ebe (patch) | |
tree | c7ae206c33f0f1de8638cf7f5d978019d2eee34e | |
parent | f201e79bf45c948cb38b6686af1a56bbfe79c5da (diff) | |
parent | f51fdfb7afd285db9ac9a0684e085a3e5013b70d (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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |