aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-04-12 23:41:26 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-04-12 23:41:26 +0300
commit0813c48d190d983cb0b3e55f5d8345c91c43e09b (patch)
treeec88f147394274bf127165454b7cda2c7770b769
parent9fff07da8c25183f53934c0155d1fa49bc97198e (diff)
downloadegawk-0813c48d190d983cb0b3e55f5d8345c91c43e09b.tar.gz
egawk-0813c48d190d983cb0b3e55f5d8345c91c43e09b.tar.bz2
egawk-0813c48d190d983cb0b3e55f5d8345c91c43e09b.zip
Compile fix for Mac OS X.
-rw-r--r--ChangeLog3
-rw-r--r--builtin.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e053f7e..89722334 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* mpfr.c (mpg_format_val): Set STRCUR flag when we're done.
Fixes a memory leak. Thanks to valgrind for the report.
+ * builtin.c (do_dcgettext): Move declaration of reslen to
+ outside the ifdefs. Thanks to Hermann Peifer for the report.
+
2017-04-12 Manuel Collado <m-collado@users.sourceforge.net>
Fix the FPAT bug reported by Ed Morton in the gawk-bug mailing list.
diff --git a/builtin.c b/builtin.c
index a0db2e4d..b3587630 100644
--- a/builtin.c
+++ b/builtin.c
@@ -3789,11 +3789,11 @@ do_dcgettext(int nargs)
NODE *tmp, *t1, *t2 = NULL;
char *string;
char *the_result;
+ size_t reslen;
#if ENABLE_NLS && defined(LC_MESSAGES) && HAVE_DCGETTEXT
int lc_cat;
char *domain;
char save1, save2;
- size_t reslen;
if (nargs == 3) { /* third argument */
tmp = POP_STRING();