summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pjlib/include/pj/log.h3
-rw-r--r--pjsip/src/pjsua-lib/pjsua_call.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/pjlib/include/pj/log.h b/pjlib/include/pj/log.h
index 96dc4852..e0fd9526 100644
--- a/pjlib/include/pj/log.h
+++ b/pjlib/include/pj/log.h
@@ -105,8 +105,9 @@ enum pj_log_decoration
* @hideinitializer
*/
#define PJ_LOG(level,arg) do { \
- if (level <= pj_log_get_level()) \
+ if (level <= pj_log_get_level()) { \
pj_log_wrapper_##level(arg); \
+ } \
} while (0)
/**
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c
index cd8c227f..2c269e67 100644
--- a/pjsip/src/pjsua-lib/pjsua_call.c
+++ b/pjsip/src/pjsua-lib/pjsua_call.c
@@ -4515,7 +4515,7 @@ static void on_call_transferred( pjsip_inv_session *inv,
pjsip_msg_find_hdr_by_name(rdata->msg_info.msg, &str_refer_sub, NULL);
if (refer_sub) {
- if (!pj_strnicmp2(&refer_sub->hvalue, "true", 4)==0)
+ if (pj_strnicmp2(&refer_sub->hvalue, "true", 4)!=0)
no_refer_sub = PJ_TRUE;
}