Actually use tmp for something (brings trunk back into sync with 1.6 branches).
[asterisk/asterisk.git] / apps / app_voicemail.c
index 17afc5f..a9b3d3d 100644 (file)
@@ -5259,7 +5259,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
                return -1;
        }
 
-       ext = ast_strdupa(ext);
+       ast_str_set(&tmp, 0, "%s", ext);
+       ext = ast_str_buffer(tmp);
        if ((context = strchr(ext, '@'))) {
                *context++ = '\0';
                tmpptr = strchr(context, '&');