]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix ODBC build for FreeBSD
authorMark Spencer <markster@digium.com>
Sun, 13 Jun 2004 01:54:53 +0000 (01:54 +0000)
committerMark Spencer <markster@digium.com>
Sun, 13 Jun 2004 01:54:53 +0000 (01:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3197 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_odbc.c

index 24c28dd3f66b8672b2a37a9610cf6b05d722a72c..60e8cd24387d439372df623adfe989c32fa04e10 100755 (executable)
@@ -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);