]> code.ossystems Code Review - openembedded-core.git/commitdiff
rpm: fix return without value in patch
authorRoss Burton <ross.burton@intel.com>
Tue, 6 Oct 2015 13:03:13 +0000 (14:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Oct 2015 23:07:30 +0000 (00:07 +0100)
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>
meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch

index 3986030667c284329d6e2d0b0d2beb481247ebf1..3d8d645a7761f7e8cc7d02d7c6cc439820c6dbb0 100644 (file)
@@ -37,7 +37,7 @@ index 40c42bd..88d85ab 100644
 +    int ret,rootdir_len;
 +
 +    if(rootdir == NULL) {
-+        return;
++        return -1;
 +    }
 +
 +    rootdir_len = strlen(rootdir);