grueni
2019-08-20 ab8ce2d48502c506d0bb165ed399f632f6dabe69
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
commit 345487a6c78c4a2fd77298710fa96e87e35fc176
Author: Andreas Grueninger <andreas.grueninger@nomail.com>
Date:   Sat Oct 22 17:34:34 2016 +0200
 
    Fix: utils : Dump eventually already existing error
 
diff --git a/lib/common/utils.c b/lib/common/utils.c
index 676e0a9..e152c13 100644
--- a/lib/common/utils.c
+++ b/lib/common/utils.c
@@ -1925,6 +1925,7 @@
         return NULL;
     }
 
+    error = dlerror();
     a_function = dlsym(*handle, fn);
     if (a_function == NULL) {
         error = dlerror();