diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 079aaac9e73e34525ae29d07406ad252c8cabb4c..d442c68245ae243d89de88e47d681fc1cb2019e1 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) {