From: Ross Burton Date: Tue, 6 Oct 2015 13:03:13 +0000 (+0100) Subject: rpm: fix return without value in patch X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~28649 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26e90d64b51e1e53e9314f9c56939f5f6d525449;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rpm: fix return without value in patch The error patch in rpm-check-rootpath-reasonableness.patch did a bare return from a function that should be returning an int. As this is the error path, return -1 instead. Signed-off-by: Ross Burton --- diff --git a/meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch b/meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch index 3986030667c..3d8d645a776 100644 --- a/meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch +++ b/meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch @@ -37,7 +37,7 @@ index 40c42bd..88d85ab 100644 + int ret,rootdir_len; + + if(rootdir == NULL) { -+ return; ++ return -1; + } + + rootdir_len = strlen(rootdir);