summary refs log tree commit diff
diff options
context:
space:
mode:
authorSebastian Gniazdowski <psprint@zdharma.org>2017-05-28 13:17:26 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2017-05-28 13:17:26 -0700
commit284b5aaeb08f90520ac7dc385e8921471678e7dd (patch)
treef2e04d4403b345234d07d92fff2030b1ea3f0b8a
parentca0607c4c219ea1c75673dd2a89831997d07754e (diff)
downloadzsh-284b5aaeb08f90520ac7dc385e8921471678e7dd.tar.gz
zsh-284b5aaeb08f90520ac7dc385e8921471678e7dd.tar.xz
zsh-284b5aaeb08f90520ac7dc385e8921471678e7dd.zip
41151: propagate flags when creating new parameter
-rw-r--r--ChangeLog3
-rw-r--r--Src/Modules/db_gdbm.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d97672317..eb1af3488 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
 	* Sebastian: 41153: Src/Modules/db_gdbm.c: finish module setup
 	only after all error conditions have been checked
 
+	* Sebastian: 41151: Src/Modules/db_gdbm.c: propagate flags when
+	creating new parameter
+
 	* unposted: Doc/Zsh/mod_complist.yo: clarify ZLS_COLORS pattern
 	matching contexts
 
diff --git a/Src/Modules/db_gdbm.c b/Src/Modules/db_gdbm.c
index c4bb931a3..0ab0fe725 100644
--- a/Src/Modules/db_gdbm.c
+++ b/Src/Modules/db_gdbm.c
@@ -645,7 +645,7 @@ static Param createhash( char *name, int flags ) {
     Param pm;
     HashTable ht;
 
-    pm = createparam(name, PM_SPECIAL | PM_HASHED);
+    pm = createparam(name, flags | PM_SPECIAL | PM_HASHED);
     if (!pm) {
         return NULL;
     }