SDS: avoid compiler warning in sdsIncrLen().

This commit is contained in:
antirez 2015-07-24 09:39:12 +02:00
parent 935251259f
commit 64fcd0e6ff

View File

@ -344,6 +344,7 @@ void sdsIncrLen(sds s, int incr) {
len = (sh->len += incr); len = (sh->len += incr);
break; break;
} }
default: len = 0; /* Just to avoid compilation warnings. */
} }
s[len] = '\0'; s[len] = '\0';
} }