From b4b0378358fb3d46c4f483effb6ee957857b06c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 23 Apr 2015 12:24:25 +0200 Subject: parse_kconfig: fix SIGSEGV caused by uninitialized memory --- scripts/parse_kconfig/parse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/parse_kconfig') diff --git a/scripts/parse_kconfig/parse.c b/scripts/parse_kconfig/parse.c index 7d6bf3f..0ac99f9 100644 --- a/scripts/parse_kconfig/parse.c +++ b/scripts/parse_kconfig/parse.c @@ -97,7 +97,8 @@ void cpy_dep() { Iprintf("Direct:\n"); if (verbose_level > 2) cnf_printf(el->be); - } + } else + el->be = NULL; if (sym->rev_dep.expr != NULL) { if (verbose_level > 3) printf_original(gsymlist, sym->rev_dep.expr); @@ -106,7 +107,8 @@ void cpy_dep() { Iprintf("Revers:\n"); if (verbose_level > 2) cnf_printf(el->re_be); - } + } else + el->re_be = NULL; } } } -- cgit v1.2.3