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); }