diff options
| author | charsyam <charsyam@naver.com> | 2016-04-20 23:15:41 +0900 | 
|---|---|---|
| committer | charsyam <charsyam@naver.com> | 2016-04-20 23:15:41 +0900 | 
| commit | 921e1aa84b15c1cc78568eb7d7e38ffb5af8e176 (patch) | |
| tree | 322558c36c03a01185c83a6b153f625d95c5516d | |
| parent | 36bddcf6ed31c9ce4fa3f1b6b88275a801d78bc1 (diff) | |
| download | hiredict-921e1aa84b15c1cc78568eb7d7e38ffb5af8e176.tar.xz | |
remove unused code
| -rw-r--r-- | sds.c | 4 | 
1 files changed, 1 insertions, 3 deletions
| @@ -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; | 
