summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-07-28 15:01:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:18 -0500
commit6ccc69c5323c054c51449449d2f6ebaa4fd074b4 (patch)
tree0092e806e8bf04b24f777e43b506a4f09f699585
parent8b2b177a8e07e3a0cb00fbd7fdbafc8aeba5b204 (diff)
downloadsamba-6ccc69c5323c054c51449449d2f6ebaa4fd074b4.tar.gz
samba-6ccc69c5323c054c51449449d2f6ebaa4fd074b4.tar.bz2
samba-6ccc69c5323c054c51449449d2f6ebaa4fd074b4.zip
r8833: Fix some uninitialized variables.
Volker (This used to be commit 503a58b6be1972bea0804fab82aee1d814f6d522)
-rw-r--r--source3/rpc_client/cli_spoolss.c4
-rw-r--r--source3/utils/net_rpc.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c
index 7ebae0868f..f2df763b4f 100644
--- a/source3/rpc_client/cli_spoolss.c
+++ b/source3/rpc_client/cli_spoolss.c
@@ -1467,7 +1467,7 @@ WERROR cli_spoolss_getprinterdataex(struct cli_state *cli, TALLOC_CTX *mem_ctx,
prs_struct qbuf, rbuf;
SPOOL_Q_GETPRINTERDATAEX in;
SPOOL_R_GETPRINTERDATAEX out;
- uint32 offered;
+ uint32 offered = 0;
ZERO_STRUCT(in);
ZERO_STRUCT(out);
@@ -1753,7 +1753,7 @@ WERROR cli_spoolss_enumprinterkey(struct cli_state *cli, TALLOC_CTX *mem_ctx,
prs_struct qbuf, rbuf;
SPOOL_Q_ENUMPRINTERKEY in;
SPOOL_R_ENUMPRINTERKEY out;
- uint32 offered;
+ uint32 offered = 0;
ZERO_STRUCT(in);
ZERO_STRUCT(out);
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 3f92404dda..1c44e79f30 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -5104,7 +5104,7 @@ static NTSTATUS vampire_trusted_domain(struct cli_state *cli,
{
NTSTATUS nt_status;
LSA_TRUSTED_DOMAIN_INFO *info;
- char *cleartextpwd;
+ char *cleartextpwd = NULL;
DATA_BLOB data;
smb_ucs2_t *uni_dom_name;