diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-09 18:38:43 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-09 18:38:43 +0200 |
commit | 22ae5a6a98ec6aa98207bddc37a1200ea74d134b (patch) | |
tree | eedbf11d6fb597573a3b6d1a55571af8c5fa57ca /pop_error.c | |
parent | Fix filename typo (diff) | |
download | liberror-22ae5a6a98ec6aa98207bddc37a1200ea74d134b.tar.gz liberror-22ae5a6a98ec6aa98207bddc37a1200ea74d134b.tar.bz2 liberror-22ae5a6a98ec6aa98207bddc37a1200ea74d134b.tar.xz |
Add liberror_pop_error and liberror_set_error_existing
Signed-off-by: Mattias Andrée <maandree@kth.se>
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); + } +} |