aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rwxr-xr-xres/res_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index 24c28dd3f..60e8cd243 100755
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -281,8 +281,8 @@ void destroy_obdc_obj(odbc_obj **obj) {
}
odbc_status odbc_obj_disconnect(odbc_obj *obj) {
- ast_mutex_lock(&obj->lock);
int res;
+ ast_mutex_lock(&obj->lock);
if(obj->up)
res = SQLDisconnect(obj->con);