aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-02-27 13:57:03 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-02-27 13:57:03 +0200
commit2d70e84851f48e1e4091583ea98f7437d4e080ed (patch)
tree74ed8a1923c317be218ef0da17abe3d86c144ba2
parent73fe58f8ed3ba97f703d3e516d0f502a6aa5b907 (diff)
downloadegawk-2d70e84851f48e1e4091583ea98f7437d4e080ed.tar.gz
egawk-2d70e84851f48e1e4091583ea98f7437d4e080ed.tar.bz2
egawk-2d70e84851f48e1e4091583ea98f7437d4e080ed.zip
Small bug fix.
-rw-r--r--ChangeLog4
-rw-r--r--symbol.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 610cc4fe..88a96875 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-27 Arnold D. Robbins <arnold@skeeve.com>
+
+ * symbol.c (check_param_names): Fix argument order in memset() call.
+
2015-02-24 Arnold D. Robbins <arnold@skeeve.com>
* POSIX.STD: Update copyright year.
diff --git a/symbol.c b/symbol.c
index d698299b..845d3797 100644
--- a/symbol.c
+++ b/symbol.c
@@ -642,7 +642,7 @@ check_param_names(void)
max = func_table->table_size * 2;
- memset(& n, sizeof n, 0);
+ memset(& n, 0, sizeof n);
n.type = Node_val;
n.flags = STRING|STRCUR;
n.stfmt = -1;