[OE-core] [PATCH 1/2] rpm: fix return without value in patch

Ross Burton ross.burton at intel.com
Tue Oct 6 13:06:34 UTC 2015


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 at intel.com>
---
 meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 3986030..3d8d645 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);
-- 
2.1.4



More information about the Openembedded-core mailing list