aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Lockwood2021-06-27 11:58:42 -0400
committerAlexis Lockwood2021-06-27 11:58:42 -0400
commitc16718ca5ceeae3746b7a3111d2469f77dba0bb8 (patch)
tree21a7cfd183fcbd9490f0ab6b8d556ee67bf3f9ce
parente9e71bf42130c0ea14b8e4288d97892fafca0f7b (diff)
Fix a crash in the unit tests
-rw-r--r--test/tsupport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/tsupport.c b/test/tsupport.c
index 115c8c5..5308200 100644
--- a/test/tsupport.c
+++ b/test/tsupport.c
@@ -49,6 +49,7 @@ void ls_setup_run(ls_context_t * ctx, char const * text)
{
ctx->fetcher = _fetcher;
ctx->fetcher_ctx = (void *) text;
+ ctx->line_trace_hook = NULL;
}
// --- PRIVATE FUNCTION DEFINITIONS --------------------------------------------