]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sarif-replay: fix uninitialized m_debug_physical_locations
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 17 Sep 2025 20:39:31 +0000 (16:39 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 17 Sep 2025 20:39:31 +0000 (16:39 -0400)
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 <dmalcolm@redhat.com>
gcc/sarif-replay.cc

index c740c29b2a32ed7b173e3328635fa5d48c3f5fdc..aa7f2debe9cc7113508d7acd4460e60aa2bf17d2 100644 (file)
@@ -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;
 }