commit: 650ad6f9415e229d3ac8680ca8f8c6c12a3f43c4
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon May 25 11:17:29 2020 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon May 25 11:17:29 2020 +0000
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=650ad6f9
qmerge: fix Coverity 210533
ensure todo != NULL when attempting to turn into a list
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
qmerge.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qmerge.c b/qmerge.c
index 554e3dc..49c4b5d 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -1975,7 +1975,7 @@ qmerge_run(set *todo)
if (uninstall) {
return unmerge_packages(todo);
} else {
- if (todo == NULL && search_pkgs) {
+ if (todo == NULL || search_pkgs) {
/* disputable, this should be qlist -kIv or something */
warn("please use qlist -kI");