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;
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;