[Asterisk-code-review] app_voicemail: Don't split mailbox options on comma (...asterisk[13])

Sean Bright asteriskteam at digium.com
Sat Apr 13 13:39:18 CDT 2019


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/11281


Change subject: app_voicemail: Don't split mailbox options on comma
......................................................................

app_voicemail: Don't split mailbox options on comma

Because the per-mailbox options are the last thing on a line, don't look
for or stomp on any subsequent commas.

ASTERISK-27935 #close
Reported by: Sébastien Duthil

Change-Id: I07b2eb4a33c303d0c7114d5b906f8c067c60a153
---
M apps/app_voicemail.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/81/11281/1

diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 079aaac..d442c68 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -12417,8 +12417,8 @@
 	if (stringp && (s = strsep(&stringp, ","))) {
 		ast_copy_string(vmu->pager, s, sizeof(vmu->pager));
 	}
-	if (stringp && (s = strsep(&stringp, ","))) {
-		apply_options(vmu, s);
+	if (stringp) {
+		apply_options(vmu, stringp);
 	}
 
 	switch (vmu->passwordlocation) {

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11281
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I07b2eb4a33c303d0c7114d5b906f8c067c60a153
Gerrit-Change-Number: 11281
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190413/8761d216/attachment.html>


More information about the asterisk-code-review mailing list