index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-05-19 17:17:32 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-05-19 17:17:32 -0500 |
commit | 11fb9c767450dc193bbeef755c228aa620df75d9 (patch) | |
tree | 9f47a77d27b39ee7ddef40edba7bed3016d3ba08 /lib/libalpm/remove.c | |
parent | 70cf4546d6d35ef9ef2751f37853cde679c88aa7 (diff) | |
parent | f2c4e7e55220addef0581d1c38cc7363b5a0884c (diff) |
-rw-r--r-- | lib/libalpm/remove.c | 2 |
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index cf416d52..2d840ceb 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -265,7 +265,7 @@ static void unlink_file(pmpkg_t *info, char *filename, alpm_list_t *skip_remove, FREE(pkghash); } else { char *filehash = alpm_compute_md5sum(file); - int cmp = strcmp(filehash,pkghash); + int cmp = filehash ? strcmp(filehash, pkghash) : 0; FREE(filehash); FREE(pkghash); if(cmp != 0) { |