[Asterisk-code-review] app minivm.c: Fix malformed ast json pack() call. (asterisk[14])

Richard Mudgett asteriskteam at digium.com
Thu Oct 13 15:58:35 CDT 2016


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/4090

Change subject: app_minivm.c: Fix malformed ast_json_pack() call.
......................................................................

app_minivm.c: Fix malformed ast_json_pack() call.

Change-Id: I082b239022fac462666e52a14a44304748908dc0
---
M apps/app_minivm.c
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/90/4090/1

diff --git a/apps/app_minivm.c b/apps/app_minivm.c
index e97150b..c84b7d7 100644
--- a/apps/app_minivm.c
+++ b/apps/app_minivm.c
@@ -1853,10 +1853,10 @@
 	}
 	mwi_state->snapshot = ast_channel_snapshot_get_latest(ast_channel_uniqueid(chan));
 
-	json_object = ast_json_pack("{s: s, s: s}",
-			"Event", "MiniVoiceMail"
-			"Action", "SentNotification",
-			"Counter", counter);
+	json_object = ast_json_pack("{s: s, s: s, s: s}",
+		"Event", "MiniVoiceMail",
+		"Action", "SentNotification",
+		"Counter", counter ?: "");
 	if (!json_object) {
 		goto notify_cleanup;
 	}

-- 
To view, visit https://gerrit.asterisk.org/4090
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I082b239022fac462666e52a14a44304748908dc0
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list