summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/Modules/db_gdbm.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 859082dc8..646674542 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2008-07-21  Clint Adams  <clint@zsh.org>
 
+	* 25322: Src/Modules/db_gdbm.c: fix printing of keys.
+
 	* 25321: Src/Modules/db_gdbm.c: delete gdbm node when
 	corresponding hash entry is unset.
 
diff --git a/Src/Modules/db_gdbm.c b/Src/Modules/db_gdbm.c
index ce7a6f57e..9cc9648d1 100644
--- a/Src/Modules/db_gdbm.c
+++ b/Src/Modules/db_gdbm.c
@@ -191,6 +191,7 @@ scangdbmkeys(UNUSED(HashTable ht), ScanFunc func, int flags)
     while(key.dptr) {
 	content = gdbm_fetch(dbf, key);
 
+	pm->node.nam = key.dptr;
 	pm->u.str = content.dptr;
 	pm->gsu.s = &nullsetscalar_gsu;