]> 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)
commit3bdcc19e2e4d32781fe262458271bc5d8d46ffbf
treeb5b9b483a0803953aaa1c490cc3186c4d150599b
parentfcf6ea78c8cc3cb1bd999ce2cf34d543c9854d9b
tools/libbpf: Avoid possibly using uninitialized variable

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

Fixes: 6978ac42973a ("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