From: Uri Simchoni Date: Wed, 20 Jan 2016 07:34:26 +0000 (+0200) Subject: smbcacls: fix uninitialized variable X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba%2Fsamba-obnox.git;a=commitdiff_plain;h=6cff00954763a7b266db5bab229b989e89abcee0 smbcacls: fix uninitialized variable 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 Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Wed Jan 20 12:12:12 CET 2016 on sn-devel-144 --- diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 2596069e8ee..d50219cf74a 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -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