summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-07-21 02:34:06 +0000
committerClint Adams <clint@users.sourceforge.net>2008-07-21 02:34:06 +0000
commit2d2d341161ca6699a6efd6981c3a9fd7fe52e6d6 (patch)
tree0e79a278d14b32b5a8c927f5da1ebc5741b9c072
parent8954f31c7c33351deff85e0f419bb6abb2c4ca54 (diff)
downloadzsh-2d2d341161ca6699a6efd6981c3a9fd7fe52e6d6.tar.gz
zsh-2d2d341161ca6699a6efd6981c3a9fd7fe52e6d6.tar.xz
zsh-2d2d341161ca6699a6efd6981c3a9fd7fe52e6d6.zip
25322: fix printing of keys.
-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;