mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 23:01:03 +00:00
SDS: avoid compiler warning in sdsIncrLen().
This commit is contained in:
parent
935251259f
commit
64fcd0e6ff
@ -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';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user