aboutsummaryrefslogtreecommitdiffstats
path: root/end.c
diff options
context:
space:
mode:
Diffstat (limited to 'end.c')
-rw-r--r--end.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/end.c b/end.c
new file mode 100644
index 0000000..54995d0
--- /dev/null
+++ b/end.c
@@ -0,0 +1,12 @@
+/* See LICENSE file for copyright and license details. */
+#include "internal.h"
+
+
+void
+liberror_end(const struct liberror_state *state)
+{
+ liberror_saved_backtrace = state->backtrace;
+ liberror_have_error_ = state->have_error;
+ errno = state->errnum;
+ memcpy(&liberror_error_, &state->error, sizeof(liberror_error_));
+}