kconfig: Fix warning "‘jump’ may be used uninitialized"
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 4 Nov 2014 11:01:59 +0000 (12:01 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Thu, 1 Jan 2015 16:49:18 +0000 (17:49 +0100)
commit63be7663b0023fc396b8edb8a1d2a8b9c255f5f1
treecec081fe8c2bda9c1912ee9623c9517f818a5136
parentff852f61afad613d8f4f15cddabcc577dda868e0
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: Peter Kümmel <syntheticpp@gmx.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/menu.c