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)
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>

No differences found