Fix backtrace generation

This commit is contained in:
Přemysl Eric Janouch 2017-05-21 13:05:54 +02:00
parent f0156897c8
commit a529cf262e
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 1 additions and 0 deletions

1
ell.c
View File

@ -864,6 +864,7 @@ execute_statement
// with stack traces generated this way. // with stack traces generated this way.
if (!ctx->memory_failure && ctx->error[0] != '_') { if (!ctx->memory_failure && ctx->error[0] != '_') {
char *tmp = ctx->error; char *tmp = ctx->error;
ctx->error = NULL;
set_error (ctx, "%s -> %s", name, tmp); set_error (ctx, "%s -> %s", name, tmp);
free (tmp); free (tmp);
} }