Author: tridge
Date: 2005-12-02 05:29:13 +0000 (Fri, 02 Dec 2005)
New Revision: 12011

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12011

Log:

fixed another 'mixed code and declarations' bug


Modified:
   branches/SAMBA_4_0/source/libcli/security/sddl.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/security/sddl.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/security/sddl.c    2005-12-02 04:26:51 UTC 
(rev 12010)
+++ branches/SAMBA_4_0/source/libcli/security/sddl.c    2005-12-02 05:29:13 UTC 
(rev 12011)
@@ -281,8 +281,9 @@
 
        /* 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;

Reply via email to