diff options
Diffstat (limited to '')
-rw-r--r-- | pop_error.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pop_error.c b/pop_error.c new file mode 100644 index 0000000..9f830a0 --- /dev/null +++ b/pop_error.c @@ -0,0 +1,14 @@ +/* See LICENSE file for copyright and license details. */ +#include "internal.h" + + +void +liberror_pop_error(void) +{ + struct liberror_error *cause; + if (liberror_have_error_) { + cause = liberror_error_.cause; + liberror_error_.cause = NULL; + liberror_set_error_existing(cause); + } +} |