r12011: fixed another 'mixed code and declarations' bug
authorAndrew Tridgell <tridge@samba.org>
Fri, 2 Dec 2005 05:29:13 +0000 (05:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:59 +0000 (13:46 -0500)
(This used to be commit 1eca19d597ea21a073361fc6fc550919abf97574)

source4/libcli/security/sddl.c

index 1a15d8853a1037f210565fdf74d4d54fb4c25a9b..fa0e15a7b617c77b80371e5607a027cc408e3393 100644 (file)
@@ -281,8 +281,9 @@ static struct security_acl *sddl_decode_acl(struct security_descriptor *sd,
 
        /* now the ACEs */
        while (*sddl == '(') {
+               char *astr;
                len = strcspn(sddl+1, ")");
-               char *astr = talloc_strndup(acl, sddl+1, len);
+               astr = talloc_strndup(acl, sddl+1, len);
                if (astr == NULL || sddl[len+1] != ')') {
                        talloc_free(acl);
                        return NULL;