Commit 7b654e12 authored by Timo Teräs's avatar Timo Teräs

apk: sanitize return value

Most applets return whatever apk_solver_commit() returns. It is the
number of errors found (or negative for hard error). Sanitize the
error value to not give false success exit code in the unlikely case
of errors % 256 == 0.
Reported-by: default avatarMax Justicz <>
parent 13c534db
......@@ -689,5 +689,7 @@ err:
if (r < 0) r = 250;
if (r > 99) r = 99;
return r;
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