From a423caba13831c76b8651c7876bd54ecad0b0d94 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 6 Feb 2023 10:27:27 +0100 Subject: [PATCH] ClangFormatBaseIndenter: Initialize llvmFileSystemAdapter Otherwise memory analyzer reports use of uninitialized value. Amends eeeb5f0aadbb9fc936278366d65f4a6646aaaa72 Change-Id: Ic0cb0a40062a82caef73987109e8970fc57f93b6 Reviewed-by: Marcus Tillmanns Reviewed-by: --- src/plugins/clangformat/clangformatbaseindenter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/clangformat/clangformatbaseindenter.cpp b/src/plugins/clangformat/clangformatbaseindenter.cpp index fc08158d2d1..affabfec671 100644 --- a/src/plugins/clangformat/clangformatbaseindenter.cpp +++ b/src/plugins/clangformat/clangformatbaseindenter.cpp @@ -26,7 +26,7 @@ namespace ClangFormat { -Internal::LlvmFileSystemAdapter llvmFileSystemAdapter; +Internal::LlvmFileSystemAdapter llvmFileSystemAdapter = {}; namespace { void adjustFormatStyleForLineBreak(clang::format::FormatStyle &style,