1 |
commit: a6538b5c52f822dc3d67c53ddcda475cd0610d33 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 3 07:59:59 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 3 07:59:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=a6538b5c |
7 |
|
8 |
qpkg.c: fix crash on empty PKGDIR, bug #815622 |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
qpkg.c | 2 ++ |
13 |
1 file changed, 2 insertions(+) |
14 |
|
15 |
diff --git a/qpkg.c b/qpkg.c |
16 |
index 533e05c..7da0263 100644 |
17 |
--- a/qpkg.c |
18 |
+++ b/qpkg.c |
19 |
@@ -76,6 +76,8 @@ qpkg_clean(char *dirp) |
20 |
return 1; |
21 |
|
22 |
bin_pkgs = tree_get_atoms(pkgs, true, bin_pkgs); |
23 |
+ if (bin_pkgs == NULL) |
24 |
+ return 1; |
25 |
array_set(bin_pkgs, bins); |
26 |
|
27 |
if (eclean) { |