[asterisk-commits] mmichelson: branch mmichelson/rls-notify r418163 - /team/mmichelson/rls-notif...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 7 18:39:46 CDT 2014
Author: mmichelson
Date: Mon Jul 7 18:39:44 2014
New Revision: 418163
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=418163
Log:
Fix a logic error where we treat a list like a non-list.
Modified:
team/mmichelson/rls-notify/res/res_pjsip_pubsub.c
Modified: team/mmichelson/rls-notify/res/res_pjsip_pubsub.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/rls-notify/res/res_pjsip_pubsub.c?view=diff&rev=418163&r1=418162&r2=418163
==============================================================================
--- team/mmichelson/rls-notify/res/res_pjsip_pubsub.c (original)
+++ team/mmichelson/rls-notify/res/res_pjsip_pubsub.c Mon Jul 7 18:39:44 2014
@@ -1422,7 +1422,7 @@
static int generate_notify_body(struct ast_sip_subscription *root, struct ast_str **body_text)
{
- if (AST_VECTOR_SIZE(&root->children) > 0) {
+ if (AST_VECTOR_SIZE(&root->children) == 0) {
/* Not a list. We've already generated the body and saved it on the subscription.
* Use that directly.
*/
More information about the asterisk-commits
mailing list