From: Badalyan Vyacheslav Date: Thu, 8 Dec 2016 18:30:38 +0000 (+0000) Subject: res_pjsip: Fix 'A = B != C' kind. X-Git-Tag: 14.3.0-rc1~72^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F4600%2F1;p=thirdparty%2Fasterisk.git res_pjsip: Fix 'A = B != C' kind. Consider reviewing the expression of the 'A = B != C' kind. The expression is calculated as following: 'A = (B != C)' Change-Id: Ibaa637dfda47d51a20e26069d3103e05ce80003d --- diff --git a/res/res_pjsip/pjsip_options.c b/res/res_pjsip/pjsip_options.c index 09fe1559bf..24e9272f5c 100644 --- a/res/res_pjsip/pjsip_options.c +++ b/res/res_pjsip/pjsip_options.c @@ -701,7 +701,8 @@ static pj_status_t send_options_response(pjsip_rx_data *rdata, int code) pj_status_t status; /* Make the response object */ - if ((status = ast_sip_create_response(rdata, code, NULL, &tdata) != PJ_SUCCESS)) { + status = ast_sip_create_response(rdata, code, NULL, &tdata); + if (status != PJ_SUCCESS) { ast_log(LOG_ERROR, "Unable to create response (%d)\n", status); return status; }