diff options
author | 2021-06-16 21:03:08 +0200 | |
---|---|---|
committer | 2021-06-16 21:19:43 +0200 | |
commit | bf39c0fefdd990da681cd31376e556006e62cb10 (patch) | |
tree | d69a7b56593c9b9c2cb19587242e57f580e23142 /qmerge.c | |
parent | qmerge: Protect against NULL ptr (diff) | |
download | portage-utils-bf39c0fefdd990da681cd31376e556006e62cb10.tar.gz portage-utils-bf39c0fefdd990da681cd31376e556006e62cb10.tar.bz2 portage-utils-bf39c0fefdd990da681cd31376e556006e62cb10.zip |
qmerge: add comment about hash == NULL
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'qmerge.c')
-rw-r--r-- | qmerge.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1514,7 +1514,7 @@ pkg_unmerge(tree_pkg_ctx *pkg_ctx, set *keep, char *hash = hash_file_at(portroot_fd, e->name + 1, HASH_MD5); protected = 0; - if (hash) + if (hash != NULL) /* if file was not removed */ protected = strcmp(e->digest, (const char *)hash); } break; |