Unverified Commit bf92000e authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Remove extra semicolon (#9117)

Remove extra semicolon.
parent 81d5f05b
...@@ -556,14 +556,14 @@ static int _hashZiplistEntryValidation(unsigned char *p, void *userdata) { ...@@ -556,14 +556,14 @@ static int _hashZiplistEntryValidation(unsigned char *p, void *userdata) {
dict *fields; dict *fields;
} *data = userdata; } *data = userdata;
/* Odd records are field names, add to dict and check that's not a dup */ /* Even records are field names, add to dict and check that's not a dup */
if (((data->count) & 1) == 0) { if (((data->count) & 1) == 0) {
unsigned char *str; unsigned char *str;
unsigned int slen; unsigned int slen;
long long vll; long long vll;
if (!ziplistGet(p, &str, &slen, &vll)) if (!ziplistGet(p, &str, &slen, &vll))
return 0; return 0;
sds field = str? sdsnewlen(str, slen): sdsfromlonglong(vll);; sds field = str? sdsnewlen(str, slen): sdsfromlonglong(vll);
if (dictAdd(data->fields, field, NULL) != DICT_OK) { if (dictAdd(data->fields, field, NULL) != DICT_OK) {
/* Duplicate, return an error */ /* Duplicate, return an error */
sdsfree(field); sdsfree(field);
......
...@@ -1624,7 +1624,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) { ...@@ -1624,7 +1624,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) {
long long vll; long long vll;
if (!ziplistGet(p, &str, &slen, &vll)) if (!ziplistGet(p, &str, &slen, &vll))
return 0; return 0;
sds field = str? sdsnewlen(str, slen): sdsfromlonglong(vll);; sds field = str? sdsnewlen(str, slen): sdsfromlonglong(vll);
if (dictAdd(data->fields, field, NULL) != DICT_OK) { if (dictAdd(data->fields, field, NULL) != DICT_OK) {
/* Duplicate, return an error */ /* Duplicate, return an error */
sdsfree(field); sdsfree(field);
......
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