summaryrefslogtreecommitdiffstats
path: root/libdwfl/linux-kernel-modules.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2017-04-19 17:07:46 +0200
committerMark Wielaard <[email protected]>2017-04-19 17:11:08 +0200
commit7114c513fbebcca8b76796b7f64b57447ba383e1 (patch)
tree010b6a0b65aab2d0b29e070478bf35d4661241cc /libdwfl/linux-kernel-modules.c
parent45ca3b9dfdc730cc6e6420a59ad9cb2613473aa0 (diff)
libelf: Initialize n to zero in elf_getarsym.
When building with gcc -Os it seems we can inline read_number_entries but if that function fails then n will not be initialized. GCC seems not to realize that in that case n won't be used at all. Explicitly initialize n to zero to prevent a spurious error: 'n' may be used uninitialized in this function [-Werror=maybe-uninitialized] in that case. https://sourceware.org/bugzilla/show_bug.cgi?id=21011 Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libdwfl/linux-kernel-modules.c')
0 files changed, 0 insertions, 0 deletions