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 --- imaxabs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'imaxabs.c') diff --git a/imaxabs.c b/imaxabs.c index cffacc2..22d3d10 100644 --- a/imaxabs.c +++ b/imaxabs.c @@ -10,6 +10,7 @@ liberror_imaxabs(intmax_t i) #else if (i != INTMAX_MIN) return imaxabs(i); + liberror_save_backtrace(NULL); liberror_set_error_errno("The absolute value of largest negative integer " "cannot be represented as a signed integer", "imaxabs", EOVERFLOW); -- cgit v1.2.3-70-g09d2