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)
commitb1a2ce825737b0165cc08e6f98f8c0ea1affdd60
treeb5b9b483a0803953aaa1c490cc3186c4d150599b
parent9c2d63b843a5c8a8d0559cc067b5398aa5ec3ffc
tools/libbpf: Avoid possibly using uninitialized variable

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

Fixes: 48cca7e44f9f ("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