1 |
commit: bf39c0fefdd990da681cd31376e556006e62cb10 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 16 19:03:08 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 16 19:19:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=bf39c0fe |
7 |
|
8 |
qmerge: add comment about hash == NULL |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
qmerge.c | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/qmerge.c b/qmerge.c |
16 |
index 7b42956..0e7ada4 100644 |
17 |
--- a/qmerge.c |
18 |
+++ b/qmerge.c |
19 |
@@ -1514,7 +1514,7 @@ pkg_unmerge(tree_pkg_ctx *pkg_ctx, set *keep, |
20 |
char *hash = hash_file_at(portroot_fd, |
21 |
e->name + 1, HASH_MD5); |
22 |
protected = 0; |
23 |
- if (hash) |
24 |
+ if (hash != NULL) /* if file was not removed */ |
25 |
protected = strcmp(e->digest, (const char *)hash); |
26 |
} |
27 |
break; |