From 5452f3f62319be7732de3fabbac6ac7eb91ffa7a Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 26 Jun 2024 20:20:34 -0400 Subject: [PATCH] Appease -fsanitize. --- src/util.js.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util.js.c b/src/util.js.c index 1df06cc0..b98d6702 100644 --- a/src/util.js.c +++ b/src/util.js.c @@ -438,7 +438,10 @@ const char* tf_util_backtrace_string() void tf_util_print_backtrace() { const char* bt = tf_util_backtrace_string(); - tf_printf("%s\n", bt); + if (bt) + { + tf_printf("%s\n", bt); + } tf_free((void*)bt); }