Skip to content

Commit fc58591

Browse files
author
holzboote@googlemail.com
committed
Fix for CONC-101: redefinition of dlerror
1 parent 07d26ed commit fc58591

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

include/my_global.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ do { doubleget_union _tmp; \
10811081
#elif defined(HAVE_DLFCN_H)
10821082
#include <dlfcn.h>
10831083
#endif
1084-
#if HAVE_DLERROR
1084+
#ifndef HAVE_DLERROR
10851085
#define dlerror() ""
10861086
#endif
10871087
#endif

unittest/libmariadb/misc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,6 @@ static int test_connect_attrs(MYSQL *my)
935935

936936
if (!(mysql->server_capabilities & CLIENT_CONNECT_ATTRS))
937937
{
938-
mysql_close(mysql);
939938
diag("Server doesn't support connection attributes");
940939
return SKIP;
941940
}
@@ -956,7 +955,6 @@ static int test_connect_attrs(MYSQL *my)
956955

957956
len= mysql->options.extension->connect_attrs_len;
958957

959-
960958
mysql_close(mysql);
961959

962960
FAIL_IF(rc < 3, "Expected 3 or more rows");

0 commit comments

Comments
 (0)