diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-23 12:12:30 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-23 12:12:30 +0200 |
commit | 8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194 (patch) | |
tree | 87ea49abbf5a0a859f85af4f44cc4eaa978555bf /scripts | |
parent | 4b7594e81e4d92f44dddd2b7fe690caa9c7049b6 (diff) | |
download | linux-conf-perf-8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194.tar.gz linux-conf-perf-8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194.tar.bz2 linux-conf-perf-8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194.zip |
parse_kconfig: fix SIGSEGV caused by wrong approach to expression negation
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/parse_kconfig/cnfexpr.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |