summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2016-01-20 09:34:26 +0200
committerKarolin Seeger <kseeger@samba.org>2016-01-21 13:27:02 +0100
commit279246d4b18b0a3cd512153ac009667a6b49113a (patch)
tree0492ffa27fb4ea0c0318758111623d2e17c8a9c3
parentd63f0b11d2a0658228d9d06bf9bd6810f284de18 (diff)
downloadsamba-279246d4b18b0a3cd512153ac009667a6b49113a.tar.gz
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 <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 (cherry picked from commit 6cff00954763a7b266db5bab229b989e89abcee0) Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-2-test): Thu Jan 21 13:27:02 CET 2016 on sn-devel-104
-rw-r--r--source3/utils/smbcacls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index c7ed6f3a13c..7c18d1c8ad7 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