[svn-commits] mmichelson: branch jrothenberger/asterisk-urgent r106495 - /team/jrothenberge...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Mar 6 17:01:48 CST 2008
Author: mmichelson
Date: Thu Mar 6 17:01:48 2008
New Revision: 106495
URL: http://svn.digium.com/view/asterisk?view=rev&rev=106495
Log:
Removing an unneeded ast_strlen_zero call. The flag will never be NULL, and if it
is zero-length, then it will be impossible to set a message as urgent. I found this
when trying to send a voicemail from VoiceMailMain to another box.
Modified:
team/jrothenberger/asterisk-urgent/apps/app_voicemail.c
Modified: team/jrothenberger/asterisk-urgent/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/jrothenberger/asterisk-urgent/apps/app_voicemail.c?view=diff&rev=106495&r1=106494&r2=106495
==============================================================================
--- team/jrothenberger/asterisk-urgent/apps/app_voicemail.c (original)
+++ team/jrothenberger/asterisk-urgent/apps/app_voicemail.c Thu Mar 6 17:01:48 2008
@@ -9523,7 +9523,7 @@
case '4':
if (outsidecaller) { /* only mark vm messages */
/* Mark Urgent */
- if (!ast_strlen_zero(flag) && strcmp(flag, "URGENT")) {
+ if (strcmp(flag, "URGENT")) {
ast_verbose(VERBOSE_PREFIX_3 "marking message as URGENT\n");
res = ast_play_and_wait(chan, "vm-marked-urgent");
strcpy(flag, "URGENT");
More information about the svn-commits
mailing list