summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-02-08 11:40:55 -0800
committerJeremy Allison <jra@samba.org>2008-02-08 11:40:55 -0800
commit114596b9669239625c38e763c17f6aed76dd96c0 (patch)
tree41e7c8c70561fbcaaa53ba9e9b3878ad2aaaa8a5 /source3
parent48ea5852b6854f051754574b27807972426ebbbe (diff)
downloadsamba-114596b9669239625c38e763c17f6aed76dd96c0.tar.gz
samba-114596b9669239625c38e763c17f6aed76dd96c0.tar.bz2
samba-114596b9669239625c38e763c17f6aed76dd96c0.zip
Fix warning and use of uninitialized variable.
gd please check ! Jeremy. (This used to be commit 90fb59cb440d4e2d68c550f554a0a4a3cb386762)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_samr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index bec7227e83..edc3c9d4b2 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -1332,7 +1332,7 @@ static NTSTATUS cmd_samr_query_dispinfo(struct rpc_pipe_client *cli,
{
POLICY_HND connect_pol, domain_pol;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
- uint32 start_idx=0, max_entries=250, max_size = 0xffff, num_entries, i;
+ uint32 start_idx=0, max_entries=250, max_size = 0xffff, num_entries = 0, i;
uint32 access_mask = MAXIMUM_ALLOWED_ACCESS;
uint32 info_level = 1;
union samr_DispInfo info;
@@ -1859,7 +1859,7 @@ static NTSTATUS cmd_samr_lookup_rids(struct rpc_pipe_client *cli,
{
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
POLICY_HND connect_pol, domain_pol;
- uint32_t num_rids, num_names, *rids;
+ uint32_t num_rids, *rids;
struct lsa_Strings names;
struct samr_Ids types;
@@ -1923,7 +1923,7 @@ static NTSTATUS cmd_samr_lookup_rids(struct rpc_pipe_client *cli,
/* Display results */
- for (i = 0; i < num_names; i++) {
+ for (i = 0; i < num_rids; i++) {
printf("rid 0x%x: %s (%d)\n",
rids[i], names.names[i].string, types.ids[i]);
}