Fix comparison is always true

Via lgtm.
parent a18ce1ac
...@@ -128,7 +128,7 @@ url_decode(const enum encoding dec, char *restrict const buf, ...@@ -128,7 +128,7 @@ url_decode(const enum encoding dec, char *restrict const buf,
AN(strings); AN(strings);
assert(dec == URL); assert(dec == URL);
if (n >= 0 && (size_t)n < len) if (n >= 0)
len = n; len = n;
for (int i = 0; len > 0 && i < strings->n; i++) { for (int i = 0; len > 0 && i < strings->n; i++) {
......
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