From: Tilghman Lesher Date: Wed, 25 Feb 2009 19:03:35 +0000 (+0000) Subject: Oops, wrong direction of command X-Git-Tag: 1.6.2.0-beta1~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c4d40c8476b1dbdfc78b2f3470f4957d1789303;p=thirdparty%2Fasterisk.git Oops, wrong direction of command git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@178573 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_odbc.c b/res/res_odbc.c index 8abdbc0c3d..ec883abf47 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);