Fix: tests: gen-ust-events-ns: Uninitialized argument value
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 22 Apr 2021 21:24:57 +0000 (17:24 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 May 2021 15:22:06 +0000 (11:22 -0400)
commit032a3d09c1834efc9e4112cce5f5d58082db08ba
treeb531d2aee834635bb31b4a3b12f2eada2825c8b9
parentfe009695f184bc5cc1cf04c98081a940a2f78b7a
Fix: tests: gen-ust-events-ns: Uninitialized argument value

If both `if (snprintf(...` of the `get_ns_inum()` function fail, the
function will not uninitialize the `ns_inum` output parameter and still
return 0. Leading to the argument `ns1` of debug_printf() being used
uninitialized.

Reported-by: scan-build.
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I090e57d5c896fbac7381989e887ae7281697b4de
tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c
This page took 0.025723 seconds and 5 git commands to generate.