- variables must be declared at the beginning of a block
... | ... |
@@ -136,9 +136,10 @@ struct my_con* db_mysql_new_connection(const struct db_id* id) |
136 | 136 |
*/ |
137 | 137 |
void db_mysql_free_connection(struct pool_con* con) |
138 | 138 |
{ |
139 |
+ struct my_con * _c; |
|
140 |
+ |
|
139 | 141 |
if (!con) return; |
140 | 142 |
|
141 |
- struct my_con * _c; |
|
142 | 143 |
_c = (struct my_con*) con; |
143 | 144 |
|
144 | 145 |
if (_c->res) mysql_free_result(_c->res); |