From f1b3c0e86daec1f5b7ed81a60edbe548fcbb5f42 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Jan 2018 16:17:10 +0200 Subject: Work around bogus ubsan report --- build2/diagnostics.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/diagnostics.cxx') diff --git a/build2/diagnostics.cxx b/build2/diagnostics.cxx index b1f2796..f04751c 100644 --- a/build2/diagnostics.cxx +++ b/build2/diagnostics.cxx @@ -40,7 +40,7 @@ namespace build2 #else __thread #endif - const diag_frame* diag_frame::stack; + const diag_frame* diag_frame::stack = nullptr; // Diagnostic facility, project specifics. // -- cgit v1.1