projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes for multi thread support
[NeonServV5.git]
/
src
/
mysqlConn.c
diff --git
a/src/mysqlConn.c
b/src/mysqlConn.c
index ea3c2b89ab4d1042463438d4ce62d5ed97c2dd54..3c3a5a802e62d29b9c97415ad572cf7003de2128 100644
(file)
--- a/
src/mysqlConn.c
+++ b/
src/mysqlConn.c
@@
-20,7
+20,7
@@
struct mysql_conn_struct {
unsigned long tid;
struct mysql_conn_struct {
unsigned long tid;
- MYSQL *mysql_conn
= NULL
;
+ MYSQL *mysql_conn;
struct used_result *used_results;
struct escaped_string *escaped_strings;
struct mysql_conn_struct *next;
struct used_result *used_results;
struct escaped_string *escaped_strings;
struct mysql_conn_struct *next;
@@
-271,7
+271,7
@@
struct mysql_conn_struct *get_mysql_conn_struct() {
return mysql_conn;
}
}
return mysql_conn;
}
}
- mysql_conn = malloc(
*mysql_conn
);
+ mysql_conn = malloc(
sizeof(*mysql_conn)
);
mysql_conn->mysql_conn = mysql_init(NULL);
mysql_conn->tid = tid;
mysql_conn->used_results = NULL;
mysql_conn->mysql_conn = mysql_init(NULL);
mysql_conn->tid = tid;
mysql_conn->used_results = NULL;