diff options
author | Ross Burton <ross.burton@intel.com> | 2015-10-06 14:03:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-07 00:07:30 +0100 |
commit | 26e90d64b51e1e53e9314f9c56939f5f6d525449 (patch) | |
tree | 7e50d47655c270e0e12b914ccd1f484723fa309d /meta/recipes-devtools/rpm | |
parent | 727e24f9d7818929a4777338fadbb5a431273fe6 (diff) | |
download | openembedded-core-26e90d64b51e1e53e9314f9c56939f5f6d525449.tar.gz openembedded-core-26e90d64b51e1e53e9314f9c56939f5f6d525449.tar.bz2 openembedded-core-26e90d64b51e1e53e9314f9c56939f5f6d525449.zip |
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 <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/rpm')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch | 2 |
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 + int ret,rootdir_len; + + if(rootdir == NULL) { -+ return; ++ return -1; + } + + rootdir_len = strlen(rootdir); |