Browse Source

db_mysql: compile fix for gcc 2.95

- variables must be declared at the beginning of a block
Andrei Pelinescu-Onciul 16 years ago
parent
commit
030ed0e68b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/db_mysql/km_my_con.c

+ 2 - 1
modules/db_mysql/km_my_con.c

@@ -136,9 +136,10 @@ struct my_con* db_mysql_new_connection(const struct db_id* id)
  */
 void db_mysql_free_connection(struct pool_con* con)
 {
+	struct my_con * _c;
+	
 	if (!con) return;
 
-	struct my_con * _c;
 	_c = (struct my_con*) con;
 
 	if (_c->res) mysql_free_result(_c->res);