summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-03-24 15:32:43 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-03-24 15:32:43 +0900
commitbeadc29214926723d3a83cdecb2016283c247054 (patch)
treeb9a10d77583c8aaff2639f654c50feb1fa3f5fed
parente4a8069b329cacd6486f831bb55273f8253295b2 (diff)
downloadzsh-beadc29214926723d3a83cdecb2016283c247054.tar.gz
zsh-beadc29214926723d3a83cdecb2016283c247054.zip
unposted: add 'static' to a file-local variable
-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 f17ed6dff..02d60612b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* 42501: Src/Zle/complete.c, Src/Zle/computil.c,
Src/Zle/zle_thingy.c: avoid out of bound pointer (as 42487).
+ * unposted: Src/Modules/db_gdbm.c: add 'static' to a file-local
+ variable.
+
2018-03-23 Oliver Kiddle <okiddle@yahoo.co.uk>
* 42491 based on 42000 (Andrei Shevchuk):
diff --git a/Src/Modules/db_gdbm.c b/Src/Modules/db_gdbm.c
index cf1322459..5f776f407 100644
--- a/Src/Modules/db_gdbm.c
+++ b/Src/Modules/db_gdbm.c
@@ -98,7 +98,7 @@ static struct builtin bintab[] = {
{ name, PM_ARRAY | PM_READONLY, (void *) var, NULL, NULL, NULL, NULL }
/* Holds names of all tied parameters */
-char **zgdbm_tied;
+static char **zgdbm_tied;
static struct paramdef patab[] = {
ROARRPARAMDEF( "zgdbm_tied", &zgdbm_tied ),