diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-07-21 21:15:46 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-07-21 21:15:46 +0000 |
commit | cf2b9261e82088e8a0d4d9be9c2133b1ba971550 (patch) | |
tree | 54559decfab442c1af865e8c47af2a33d8cecbb7 | |
parent | f50466cf0839b9abd6beb12576e83b3a78b9013c (diff) |
Fixed gcc warning on _pjsua.c about suggested parenthesis
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2164 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip-apps/src/python/_pjsua.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pjsip-apps/src/python/_pjsua.c b/pjsip-apps/src/python/_pjsua.c index 1d70e042..0966d90e 100644 --- a/pjsip-apps/src/python/_pjsua.c +++ b/pjsip-apps/src/python/_pjsua.c @@ -3103,8 +3103,9 @@ static PyObject *py_pjsua_call_make_call(PyObject *pSelf, PyObject *pArgs) if (pool != NULL) pj_pool_release(pool); - if (status != PJ_SUCCESS) + if (status != PJ_SUCCESS) { Py_XDECREF(pUserData); + } return Py_BuildValue("ii", status, call_id); } @@ -3244,8 +3245,9 @@ static PyObject *py_pjsua_call_set_user_data(PyObject *pSelf, PyObject *pArgs) status = pjsua_call_set_user_data(call_id, (void*)pUserData); - if (status != PJ_SUCCESS) + if (status != PJ_SUCCESS) { Py_XDECREF(pUserData); + } return Py_BuildValue("i", status); } |