aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-25 19:03:35 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-25 19:03:35 +0000
commita9e3b506a0e9205fea98075119ea77575db78ce6 (patch)
treee10677b7038afb70934985ed4617539fabdad8d9 /res
parentf60156b9b50453620f49311fb2f97930cddf4635 (diff)
Oops, wrong direction of command
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@178573 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index 8abdbc0c3..ec883abf4 100644
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -1248,7 +1248,7 @@ struct odbc_obj *ast_odbc_request_obj2(const char *name, struct ast_flags flags)
}
} else {
/* Non-pooled connection: multiple modules can use the same connection. */
- if (!(obj = ao2_callback(class->obj_container, 0, aoro2_obj_cb, NO_TX))) {
+ if ((obj = ao2_callback(class->obj_container, 0, aoro2_obj_cb, NO_TX))) {
/* Object is not constructed, so delete outstanding reference to class. */
ast_assert(ao2_ref(class, 0) > 1);
ao2_ref(class, -1);