smbcacls: fix uninitialized variable
authorUri Simchoni <uri@samba.org>
Wed, 20 Jan 2016 07:34:26 +0000 (09:34 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 20 Jan 2016 11:12:12 +0000 (12:12 +0100)
An uninitialized variable causes "numeric" mode to be
used without the -n option.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11682

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Jan 20 12:12:12 CET 2016 on sn-devel-144

source3/utils/smbcacls.c

index 2596069e8eefbf3fe9984d8359de65a5927d19b4..d50219cf74a29d643f7f545aca4abc69d0e1c19f 100644 (file)
@@ -791,7 +791,7 @@ int main(int argc, char *argv[])
        poptContext pc;
        /* numeric is set when the user wants numeric SIDs and ACEs rather
           than going via LSA calls to resolve them */
-       int numeric;
+       int numeric = 0;
 
        struct poptOption long_options[] = {
                POPT_AUTOHELP