aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/awkgram.y b/awkgram.y
index 5cf8e92f..64ed3c56 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -2287,6 +2287,11 @@ mk_program()
cp = end_block;
else
cp = list_merge(begin_block, end_block);
+ /*
+ * We don't need to clear the comment variables
+ * since they're not used anymore after this
+ * function is called.
+ */
if (comment != NULL)
(void) list_append(cp, comment);
(void) list_append(cp, ip_atexit);