diff options
| author | Peter Kümmel <syntheticpp@gmx.net> | 2014-11-04 12:01:59 +0100 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2015-06-12 12:50:34 +0100 |
| commit | ab9ebbacb04b9f54a709cc06a6903680dd7a2dd7 (patch) | |
| tree | 1622c2c1a5ea8d41399a135f00f2abc8b69df5c4 /scripts/sortextable.h | |
| parent | 8a6f35ac08c49516442e9f1b7551f0094b86c225 (diff) | |
kconfig: Fix warning "‘jump’ may be used uninitialized"
commit 2d560306096739e2251329ab5c16059311a151b0 upstream.
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>
Cc: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'scripts/sortextable.h')
0 files changed, 0 insertions, 0 deletions
