aboutsummaryrefslogtreecommitdiffstats
path: root/set_error_one_file.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-04-13 00:48:10 +0200
committerMattias Andrée <maandree@kth.se>2019-04-13 00:48:10 +0200
commitb1e498418e51ee1b22be7e85c5d29e3f31cae9c8 (patch)
tree64668c549d2d0d944c133aaeb6d0afff5919dc48 /set_error_one_file.c
parentFix makefile (diff)
downloadliberror-libc-b1e498418e51ee1b22be7e85c5d29e3f31cae9c8.tar.gz
liberror-libc-b1e498418e51ee1b22be7e85c5d29e3f31cae9c8.tar.bz2
liberror-libc-b1e498418e51ee1b22be7e85c5d29e3f31cae9c8.tar.xz
Prefetch backtrace so that it does not contain functions used to set the error
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'set_error_one_file.c')
-rw-r--r--set_error_one_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/set_error_one_file.c b/set_error_one_file.c
index f8061f8..b9b46d1 100644
--- a/set_error_one_file.c
+++ b/set_error_one_file.c
@@ -7,6 +7,7 @@ liberror_libc_set_error_one_file(const char desc[256], const char source[64], co
{
struct liberror_error *error;
int saved_errno = errno;
+ liberror_save_backtrace(NULL);
liberror_set_error_errno(desc, source, saved_errno);
error = liberror_get_error();
error->details_type = LIBERROR_DETAILS_ONE_FILE;