Skip to content
Snippets Groups Projects
Commit 60cd06e1 authored by Peter Kümmel's avatar Peter Kümmel Committed by Tom Rini
Browse files

kconfig: Fix warning "‘jump’ may be used uninitialized"


Warning:
In file included from scripts/kconfig/zconf.tab.c:2537:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:590:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     jump->offset = strlen(r->s);

Simplifies the test logic because (head && local) means (jump != 0)
and makes GCC happy when checking if the jump pointer was initialized.

Signed-off-by: default avatarPeter Kümmel <syntheticpp@gmx.net>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
[ imported from Linux Kernel, commit 2d5603060967 ]
Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
parent 61eb5d72
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment