summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libkmod/libkmod-hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libkmod/libkmod-hash.c b/libkmod/libkmod-hash.c
index c751d2d..eb7afb7 100644
--- a/libkmod/libkmod-hash.c
+++ b/libkmod/libkmod-hash.c
@@ -169,6 +169,7 @@ int hash_add(struct hash *hash, const char *key, const void *value)
if (c == 0) {
if (hash->free_value)
hash->free_value((void *)entry->value);
+ entry->key = key;
entry->value = value;
return 0;
} else if (c < 0) {