From: Francis Deslauriers Date: Thu, 22 Apr 2021 21:24:57 +0000 (-0400) Subject: Fix: tests: gen-ust-events-ns: Uninitialized argument value X-Git-Tag: v2.12.4~9 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=032a3d09c1834efc9e4112cce5f5d58082db08ba;hp=032a3d09c1834efc9e4112cce5f5d58082db08ba;p=lttng-tools.git 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 Signed-off-by: Jérémie Galarneau Change-Id: I090e57d5c896fbac7381989e887ae7281697b4de ---