aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/apk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index 04b41d4..246e037 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -689,5 +689,7 @@ err:
apk_string_array_free(&args);
free(apk_argv);
+ if (r < 0) r = 250;
+ if (r > 99) r = 99;
return r;
}