From 960c3fdcdf0703eb66862e98c45f17d612a0499f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 7 Oct 2014 07:25:25 +0200 Subject: [PATCH] bin/xbps-pkgdb/check.c: CID 62721 (argument cannot be negative) --- bin/xbps-pkgdb/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-pkgdb/check.c b/bin/xbps-pkgdb/check.c index f536bcb1..80f20a05 100644 --- a/bin/xbps-pkgdb/check.c +++ b/bin/xbps-pkgdb/check.c @@ -116,7 +116,7 @@ do { \ if (rv == -1) { \ xbps_error_printf("%s: the %s test " \ "returned error!\n", pkgname, #name); \ - return rv; \ + return EINVAL; \ } \ } \ } while (0)