summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurke Libbey <burke.libbey@shopify.com>2022-10-04 16:23:31 -0400
committerWill Estes <westes@users.noreply.github.com>2023-03-13 11:49:21 -0400
commit3352d7f1c95ca5b9ddfe19bca126254c71ca1088 (patch)
treea482c1f2e090688f65022929f2bbefbabd5919bb
parenta57e165cc50265e6ca1f6e12313e3154c6a6f96c (diff)
downloadflex-git-3352d7f1c95ca5b9ddfe19bca126254c71ca1088.tar.gz
Correctly refer to ctrl.traceline_template:
This was refactored in 0e32cd, but left a dangling reference to the previous location here.
-rw-r--r--src/filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.c b/src/filter.c
index 33e1119..efb5f6a 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -328,7 +328,7 @@ static bool is_blank_line (const char *str)
int filter_fix_linedirs (struct filter *chain)
{
char buf[4096];
- const char *traceline_template, *cp;
+ const char *cp;
const size_t readsz = sizeof buf;
int lineno = 1;
bool in_gen = true; /* in generated code */
@@ -381,7 +381,7 @@ int filter_fix_linedirs (struct filter *chain)
/* Adjust the line directives. */
in_gen = true;
- snprintf (buf, readsz, traceline_template,
+ snprintf (buf, readsz, ctrl.traceline_template,
lineno + 1, filename);
strncat(buf, "\n", sizeof(buf)-1);
}