]> git.baikalelectronics.ru Git - kernel.git/commit
tools/libbpf: Avoid possibly using uninitialized variable
authorJeremy Cline <jeremy@jcline.org>
Tue, 20 Feb 2018 01:00:07 +0000 (01:00 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 20 Feb 2018 20:08:20 +0000 (21:08 +0100)
commite3d7350906a9b7a7f3b4088ca99e883b0dccfb9b
treeb5b9b483a0803953aaa1c490cc3186c4d150599b
parent7c175da76df984b02a448ae6f3690059a2af1c21
tools/libbpf: Avoid possibly using uninitialized variable

Fixes a GCC maybe-uninitialized warning introduced by 6d6e54b4ef74.
"text" is only initialized inside the if statement so only print debug
info there.

Fixes: 6d6e54b4ef74 ("libbpf: add support for bpf_call")
Signed-off-by: Jeremy Cline <jeremy@jcline.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c