Pārlūkot izejas kodu

db_mysql: compile fix for gcc 2.95

- variables must be declared at the beginning of a block
Andrei Pelinescu-Onciul 16 gadi atpakaļ
vecāks
revīzija
030ed0e68b
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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);