From: David Malcolm Date: Wed, 17 Sep 2025 20:39:31 +0000 (-0400) Subject: sarif-replay: fix uninitialized m_debug_physical_locations X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ddabda614fed35583640a437bb641c42466476bc;p=thirdparty%2Fgcc.git sarif-replay: fix uninitialized m_debug_physical_locations In r16-2766-g7969e4859ed007 I added a new field to replay_opts but forgot to initialize it in set_defaults. Fixed thusly. Spotted thanks to valgrind. gcc/ChangeLog: * sarif-replay.cc (set_defaults): Initialize m_debug_physical_locations. Signed-off-by: David Malcolm --- diff --git a/gcc/sarif-replay.cc b/gcc/sarif-replay.cc index c740c29b2a3..aa7f2debe9c 100644 --- a/gcc/sarif-replay.cc +++ b/gcc/sarif-replay.cc @@ -37,6 +37,7 @@ set_defaults (replay_options &replay_opts) replay_opts.m_echo_file = false; replay_opts.m_json_comments = false; replay_opts.m_verbose = false; + replay_opts.m_debug_physical_locations = false; replay_opts.m_diagnostics_colorize = DIAGNOSTIC_COLORIZE_IF_TTY; }