From a84da8a0b924becf3d65092e7d2668aac1c42f11 Mon Sep 17 00:00:00 2001 From: Russell Bryant <russell@russellbryant.com> Date: Fri, 24 Dec 2004 18:56:57 +0000 Subject: [PATCH] fix flag error (bug #3130) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4553 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a1102ac099..8e6e411793 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -475,7 +475,7 @@ static struct ast_vm_user *find_user(struct ast_vm_user *ivm, const char *contex vmu = malloc(sizeof(struct ast_vm_user)); if (vmu) { memcpy(vmu, cur, sizeof(struct ast_vm_user)); - ast_set2_flag(vmu, ivm, VM_ALLOCED); + ast_set2_flag(vmu, !ivm, VM_ALLOCED); vmu->next = NULL; } } else -- GitLab