aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}