提交 64fcd0e6 编写于 作者: A antirez

SDS: avoid compiler warning in sdsIncrLen().

上级 93525125
......@@ -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';
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册