aboutsummaryrefslogtreecommitdiffstats
path: root/get_error.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-04-12 21:12:12 +0200
committerMattias Andrée <maandree@kth.se>2019-04-12 21:13:19 +0200
commit1484b1264552ad05d75a4ca4f40972ac94e729e9 (patch)
treeb9f6d6212866699db66e8bd64310d445498db2f3 /get_error.c
downloadliberror-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 'get_error.c')
-rw-r--r--get_error.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/get_error.c b/get_error.c
new file mode 100644
index 0000000..4ee3dbc
--- /dev/null
+++ b/get_error.c
@@ -0,0 +1,11 @@
+/* See LICENSE file for copyright and license details. */
+#include "internal.h"
+
+
+struct liberror_error *
+liberror_get_error(void)
+{
+ if (liberror_have_error_)
+ return &liberror_error_;
+ return NULL;
+}