From: Badalyan Vyacheslav Date: Thu, 8 Dec 2016 18:30:38 +0000 (+0000) Subject: res_pjsip: Fix 'A = B != C' kind. X-Git-Tag: 13.14.0-rc1~72^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F4593%2F2;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 8c8836fd90..08eb458395 100644 --- a/res/res_pjsip/pjsip_options.c +++ b/res/res_pjsip/pjsip_options.c @@ -711,7 +711,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; }