diff options
author | Mattias Andrée <maandree@kth.se> | 2019-04-13 22:00:04 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-04-13 22:00:04 +0200 |
commit | 05ad06600b712a29bc99a65ae89f38d4d8f30371 (patch) | |
tree | 1d7d8a6ac3b83c0150635a2e81dd51d4e648e4b3 /end.c | |
parent | Document fields for error details (diff) | |
download | liberror-05ad06600b712a29bc99a65ae89f38d4d8f30371.tar.gz liberror-05ad06600b712a29bc99a65ae89f38d4d8f30371.tar.bz2 liberror-05ad06600b712a29bc99a65ae89f38d4d8f30371.tar.xz |
Add liberror_start and liberror_end
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | end.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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_)); +} |