trace-cmd: Move the initialization of found_pid at the beginning of stop_trace_connect()
In stop_trace_connect(), trace_fields.found_pid is used in the error
path before it has been initialized. Move the initialization at the
beginning of the function.
Fixes a UNINIT error (CWE-457)
Link: https://lore.kernel.org/linux-trace-devel/20240605134054.2626953-36-jmarchan@redhat.com
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed