summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 8e83bdac..1291ea0f 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -840,6 +840,7 @@ int _alpm_splitname(const char *target, pmpkg_t *pkg)
FREE(pkg->name);
}
STRDUP(pkg->name, tmp, RET_ERR(PM_ERR_MEMORY, -1));
+ pkg->name_hash = _alpm_hash_sdbm(pkg->name);
free(tmp);
return(0);