[asterisk-commits] tilghman: branch 1.6.2 r249493 - in /branches/1.6.2: ./ apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Feb 28 14:51:15 CST 2010
Author: tilghman
Date: Sun Feb 28 14:51:11 2010
New Revision: 249493
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=249493
Log:
Merged revisions 249491 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r249491 | tilghman | 2010-02-28 14:50:01 -0600 (Sun, 28 Feb 2010) | 5 lines
Fix unit test that Alec Davis broke.
(closes issue #16927)
Reported by: alecdavis
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/apps/app_voicemail.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/apps/app_voicemail.c?view=diff&rev=249493&r1=249492&r2=249493
==============================================================================
--- branches/1.6.2/apps/app_voicemail.c (original)
+++ branches/1.6.2/apps/app_voicemail.c Sun Feb 28 14:51:11 2010
@@ -1939,7 +1939,7 @@
*/
static int messagecount(const char *context, const char *mailbox, const char *folder)
{
- if (!strcmp(folder, "INBOX")) {
+ if (ast_strlen_zero(folder) || !strcmp(folder, "INBOX")) {
return __messagecount(context, mailbox, "INBOX") + __messagecount(context, mailbox, "Urgent");
} else {
return __messagecount(context, mailbox, folder);
@@ -4986,6 +4986,9 @@
{
char tmp[256], *tmp2 = tmp, *box, *context;
ast_copy_string(tmp, mailbox, sizeof(tmp));
+ if (ast_strlen_zero(folder)) {
+ folder = "INBOX";
+ }
while ((box = strsep(&tmp2, ",&"))) {
if ((context = strchr(box, '@')))
*context++ = '\0';
More information about the asterisk-commits
mailing list