From b1e498418e51ee1b22be7e85c5d29e3f31cae9c8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 13 Apr 2019 00:48:10 +0200 Subject: Prefetch backtrace so that it does not contain functions used to set the error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- setenv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'setenv.c') diff --git a/setenv.c b/setenv.c index 157fea2..0bb7831 100644 --- a/setenv.c +++ b/setenv.c @@ -25,6 +25,7 @@ liberror_setenv(const char *envname, const char *envval, int overwrite) desc = "Environment variable name contains the '=' character"; } error: + liberror_save_backtrace(NULL); liberror_set_error_errno(desc, "setenv", errno); return -1; } -- cgit v1.2.3-70-g09d2