Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] db_gdbm: Fix for flags being unused (e.g. PM_REMOVABLE)
- X-seq: zsh-workers 41151
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] db_gdbm: Fix for flags being unused (e.g. PM_REMOVABLE)
- Date: Thu, 25 May 2017 07:15:40 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
createhash wasn't using "flags" parameter, holding e.g. PM_REMOVABLE, causing problems with scope handling
@@ -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;
}
--
Sebastian Gniazdowski
psprint /at/ zdharma.org
diff --git a/Src/Modules/db_gdbm.c b/Src/Modules/db_gdbm.c
index 35254b6..2adbb2b 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;
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author