s3:modules/vfs_afsacl fix a compiler warning
authorChristian Ambach <ambi@samba.org>
Fri, 15 Jul 2011 14:12:46 +0000 (16:12 +0200)
committerChristian Ambach <ambi@samba.org>
Thu, 21 Jul 2011 12:55:08 +0000 (14:55 +0200)
source3/modules/vfs_afsacl.c

index a1fc689eab352d1d7259bc81042d34d054f9fcfa..00bad5c364ec2dced95ce8bd6a6c7879bc55f15b 100644 (file)
@@ -303,11 +303,10 @@ static bool unparse_afs_acl(struct afs_acl *acl, char *acl_str)
        int positives = 0;
        int negatives = 0;
        fstring line;
+       struct afs_ace *ace = acl->acelist;
 
        *acl_str = 0;
 
-       struct afs_ace *ace = acl->acelist;
-
        while (ace != NULL) {
                if (ace->positive)
                        positives++;