rtla: Fix uninitialized variable found
authorColin Ian King <colin.i.king@gmail.com>
Thu, 27 Jul 2023 15:01:17 +0000 (16:01 +0100)
committerDaniel Bristot de Oliveira <bristot@kernel.org>
Mon, 30 Oct 2023 18:00:12 +0000 (19:00 +0100)
commit696444a544ecd6d62c1edc89516b376cefb28929
treeb71e149b9fa8160c707aece6a8d2ef215388333a
parenta0c04a3243f1db6cb47b04ba05b65af97f75a278
rtla: Fix uninitialized variable found

Variable found is not being initialized, in the case where the desired
mount is not found the variable contains garbage. Fix this by initializing
it to zero.

Link: https://lore.kernel.org/all/20230727150117.627730-1-colin.i.king@gmail.com/
Fixes: a957cbc02531 ("rtla: Add -C cgroup support")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
tools/tracing/rtla/src/utils.c