Skip to content
Snippets Groups Projects
Verified Commit 7956fe75 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Petr Špaček
Browse files

gc: fix a lint warning

I think the condition is still quite well readable even though much
shorter than my original !(kd[i - 1] == 0 && kd[i - 2] == 0)
parent 7730db36
Branches
Tags
1 merge request!817cache garbage collector
......@@ -87,7 +87,7 @@ const uint16_t *kr_gc_key_consistent(knot_db_val_t key)
i = 1;
} else {
/* find the first double zero in the key */
for (i = 2; !kd[i - 1] == 0 || !kd[i - 2] == 0; ++i) {
for (i = 2; kd[i - 1] || kd[i - 2]; ++i) {
if (i >= key.len)
return NULL;
}
......
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