From 8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 23 Apr 2015 12:12:30 +0200 Subject: parse_kconfig: fix SIGSEGV caused by wrong approach to expression negation --- scripts/parse_kconfig/cnfexpr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts/parse_kconfig') diff --git a/scripts/parse_kconfig/cnfexpr.c b/scripts/parse_kconfig/cnfexpr.c index 2a22a3c..c9151bf 100644 --- a/scripts/parse_kconfig/cnfexpr.c +++ b/scripts/parse_kconfig/cnfexpr.c @@ -151,9 +151,7 @@ struct cnfexpr *cnf_eql(struct symlist *sl, bool not, struct symbol *sym1, return fls; } if (!strcmp(sym2->name, "n")) { - struct cnfexpr *w = cnf_sym(sl, not, sym1); - w->exprs[0][0] *= -1; - return w; + return cnf_sym(sl, !not, sym1); } if (!strcmp(sym2->name, "y")) { return cnf_sym(sl, not, sym1); -- cgit v1.2.3