diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 0e2473100351b53be94a5355014034cb280f86b5..5c06be711a471e2bf6b9754d2a09c5a266099b1a 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -12531,8 +12531,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) {