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>
Fri, 23 Apr 2021 14:13:45 +0000 (10:13 -0400)
commit3ad7f5fefc1265d35673e5dcb9358c9c9bf6193f
tree91ac7203168421f55e72f75f8afc5b4ab77d1658
parentd00fb4907762551c3e4b91d60747704f17b41fe2
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: I47286312095ca0f6a889eb0faa93661f92156ec1
tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c
This page took 0.024245 seconds and 4 git commands to generate.