aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-21 13:05:54 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-21 13:19:50 +0200
commita529cf262e497a2517c182450e44d88e1e13860d (patch)
treeda10f5cd9b89a0477a27b6fd66e1ca31e2a57e4a
parentf0156897c82da0ac30bc16aef8d301e7e07c44c6 (diff)
downloadell-a529cf262e497a2517c182450e44d88e1e13860d.tar.gz
ell-a529cf262e497a2517c182450e44d88e1e13860d.tar.xz
ell-a529cf262e497a2517c182450e44d88e1e13860d.zip
Fix backtrace generation
-rw-r--r--ell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ell.c b/ell.c
index 188672a..902d9d9 100644
--- a/ell.c
+++ b/ell.c
@@ -864,6 +864,7 @@ execute_statement
// with stack traces generated this way.
if (!ctx->memory_failure && ctx->error[0] != '_') {
char *tmp = ctx->error;
+ ctx->error = NULL;
set_error (ctx, "%s -> %s", name, tmp);
free (tmp);
}