Module: sip-router
Branch: sr_3.0
Commit: 030ed0e68b4c4a00a9462646b969fb5c5b1fe282
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=030ed0e…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Oct 12 16:41:32 2009 +0200
db_mysql: compile fix for gcc 2.95
- variables must be declared at the beginning of a block
---
modules/db_mysql/km_my_con.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/db_mysql/km_my_con.c b/modules/db_mysql/km_my_con.c
index b938117..953c574 100644
--- a/modules/db_mysql/km_my_con.c
+++ b/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);