summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2015-10-06 14:03:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-07 00:11:21 +0100
commita8565802631023917b424b366247f522dacab8b1 (patch)
tree0f20a4dacccad3e7465c813375a90a1e2afdc960
parent49bf4b1d260ab55af171a016df7c2b45c7aa7190 (diff)
downloadpoky-a8565802631023917b424b366247f522dacab8b1.tar.gz
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. (From OE-Core rev: 26e90d64b51e1e53e9314f9c56939f5f6d525449) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch2
1 files changed, 1 insertions, 1 deletions
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 3986030667..3d8d645a77 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
37+ int ret,rootdir_len; 37+ int ret,rootdir_len;
38+ 38+
39+ if(rootdir == NULL) { 39+ if(rootdir == NULL) {
40+ return; 40+ return -1;
41+ } 41+ }
42+ 42+
43+ rootdir_len = strlen(rootdir); 43+ rootdir_len = strlen(rootdir);