mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
49bf4b1d26
commit
a856580263
@@ -37,7 +37,7 @@ index 40c42bd..88d85ab 100644
|
||||
+ int ret,rootdir_len;
|
||||
+
|
||||
+ if(rootdir == NULL) {
|
||||
+ return;
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ rootdir_len = strlen(rootdir);
|
||||
|
||||
Reference in New Issue
Block a user