diff options
author | Mattias Andrée <maandree@kth.se> | 2019-04-12 21:12:12 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-04-12 21:13:19 +0200 |
commit | 1484b1264552ad05d75a4ca4f40972ac94e729e9 (patch) | |
tree | b9f6d6212866699db66e8bd64310d445498db2f3 /reset_error.c | |
download | liberror-1484b1264552ad05d75a4ca4f40972ac94e729e9.tar.gz liberror-1484b1264552ad05d75a4ca4f40972ac94e729e9.tar.bz2 liberror-1484b1264552ad05d75a4ca4f40972ac94e729e9.tar.xz |
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'reset_error.c')
-rw-r--r-- | reset_error.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/reset_error.c b/reset_error.c new file mode 100644 index 0000000..502d149 --- /dev/null +++ b/reset_error.c @@ -0,0 +1,10 @@ +/* See LICENSE file for copyright and license details. */ +#include "internal.h" + + +void +liberror_reset_error(void) +{ + liberror_free_error(liberror_get_error()); + liberror_have_error_ = 0; +} |