]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Fix uninit variable compilation warning
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 2 Feb 2022 22:59:13 +0000 (14:59 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 3 Feb 2022 15:32:25 +0000 (16:32 +0100)
commitee657257939bc001f4b067a7c57fa2c8750fa526
treed7a49a0a49bfe9563cd9df166dee66c47d6e18ff
parent39b2de143c67d8792c38563498434b091492f2fa
bpftool: Fix uninit variable compilation warning

Newer GCC complains about capturing the address of unitialized variable.
While there is nothing wrong with the code (the variable is filled out
by the kernel), initialize the variable anyway to make compiler happy.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220202225916.3313522-4-andrii@kernel.org
tools/bpf/bpftool/common.c