diff options
Diffstat (limited to 'scripts/parse_kconfig/boolexpr.c')
-rw-r--r-- | scripts/parse_kconfig/boolexpr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/parse_kconfig/boolexpr.c b/scripts/parse_kconfig/boolexpr.c index b6f008d..0595461 100644 --- a/scripts/parse_kconfig/boolexpr.c +++ b/scripts/parse_kconfig/boolexpr.c @@ -286,6 +286,7 @@ void boolexpr_free(struct boolexpr *e) { } struct boolexpr *boolexpr_copy(struct boolexpr *e) { + struct boolexpr *cop = e; struct boolexpr **stack; size_t stack_size = 2, stack_pos = 0; stack = malloc(stack_size * sizeof(struct boolexpr *)); @@ -311,5 +312,5 @@ struct boolexpr *boolexpr_copy(struct boolexpr *e) { } } free(stack); - return e; + return cop; } |