From a529cf262e497a2517c182450e44d88e1e13860d Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 21 May 2017 13:05:54 +0200
Subject: Fix backtrace generation
---
ell.c | 1 +
1 file changed, 1 insertion(+)
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);
}
--
cgit v1.2.3-70-g09d2