Remove useless comment from enumConfigSet().

This commit is contained in:
antirez 2020-02-27 17:45:48 +01:00
parent ec73881a4d
commit 43f39f2e37

View File

@ -1674,7 +1674,6 @@ static int enumConfigSet(typeData data, sds value, int update, char **err) {
enumerr[sdslen(enumerr) - 2] = '\0';
strncpy(loadbuf, enumerr, LOADBUF_SIZE);
/* strncpy does not if null terminate if source string length is >= destination buffer. */
loadbuf[LOADBUF_SIZE - 1] = '\0';
sdsfree(enumerr);