diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 079aaac9e7..d442c68245 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -12417,8 +12417,8 @@ static int append_mailbox(const char *context, const char *box, const char *data 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) {