Fixed incorrect pointer copy to structure copy in revision 333339

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@333354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Jordan
2011-08-26 14:36:25 +00:00
parent 792c3a2d56
commit 3a29ee54db

View File

@@ -1454,7 +1454,7 @@ static struct ast_vm_user *find_user(struct ast_vm_user *ivm, const char *contex
if (cur) {
/* Make a copy, so that on a reload, we have no race */
if ((vmu = (ivm ? ivm : ast_malloc(sizeof(*vmu))))) {
vmu = cur;
*vmu = *cur;
if (!ivm) {
vmu->emailbody = ast_strdup(cur->emailbody);
vmu->emailsubject = ast_strdup(cur->emailsubject);