diff options
author | antirez <antirez@gmail.com> | 2015-07-24 09:39:12 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-07-24 09:39:12 +0200 |
commit | 64fcd0e6ff1f7a6b85f5432767a298a95eacfe00 (patch) | |
tree | 50003879ade56b354933062327d2e0b0cb9e8844 /src | |
parent | 935251259f19666bb0d8b7a83db771ca49d5e182 (diff) | |
download | redis-64fcd0e6ff1f7a6b85f5432767a298a95eacfe00.tar.gz |
SDS: avoid compiler warning in sdsIncrLen().
Diffstat (limited to 'src')
-rw-r--r-- | src/sds.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -344,6 +344,7 @@ void sdsIncrLen(sds s, int incr) { len = (sh->len += incr); break; } + default: len = 0; /* Just to avoid compilation warnings. */ } s[len] = '\0'; } |