fix flag error (bug #3130)
authorRussell Bryant <russell@russellbryant.com>
Fri, 24 Dec 2004 18:56:57 +0000 (18:56 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 24 Dec 2004 18:56:57 +0000 (18:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4553 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index a1102ac..8e6e411 100755 (executable)
@@ -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