let's use the proper variable here, instead of segfaulting (don't know how this worke...
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 19 May 2006 22:55:02 +0000 (22:55 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 19 May 2006 22:55:02 +0000 (22:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28833 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 25cca1e..4fecbc8 100644 (file)
@@ -2236,7 +2236,7 @@ static int has_voicemail(const char *mailbox, const char *folder)
        char tmp[256], *tmp2 = tmp, *mbox, *context;
        ast_copy_string(tmp, mailbox, sizeof(tmp));
        while ((mbox = strsep(&tmp2, ","))) {
-               if ((context = strchr(tmp2, '@')))
+               if ((context = strchr(mbox, '@')))
                        *context++ = '\0';
                else
                        context = "default";