Commit 64fcd0e6 authored by antirez's avatar antirez
Browse files

SDS: avoid compiler warning in sdsIncrLen().

parent 93525125
...@@ -344,6 +344,7 @@ void sdsIncrLen(sds s, int incr) { ...@@ -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';
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment