libbpf: fix false uninitialized variable warning
authorAndrii Nakryiko <andriin@fb.com>
Wed, 25 Sep 2019 18:30:38 +0000 (11:30 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 25 Sep 2019 20:15:02 +0000 (22:15 +0200)
commitaef70a1f44c0b570e6345c02c2d240471859f0a4
tree30221a00cbb30caeb52a16c339e9f3bbb1d445b1
parentfcd30ae0665c778e283f73c1c885c7fd26d12ef2
libbpf: fix false uninitialized variable warning

Some compilers emit warning for potential uninitialized next_id usage.
The code is correct, but control flow is too complicated for some
compilers to figure this out. Re-initialize next_id to satisfy
compiler.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/btf_dump.c