From ecd8ca2431ef949a66433b3a72217dd485b1b300 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Sun, 27 Sep 1998 08:29:50 +0000 Subject: Fixed up more possibly uninitialized variables. Now only two compilation warnings seem to be left. Luke may want to check the changes I made. (This used to be commit 2456c95c1664a57aa939695c884ec666ec8168ec) --- source3/rpcclient/cmd_samr.c | 2 +- source3/rpcclient/rpcclient.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 6f7cdcada1..c90b0baf25 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -265,7 +265,7 @@ void cmd_sam_query_user(struct client_info *info) fstring domain; fstring sid; DOM_SID sid1; - int user_idx; + int user_idx = 0; /* FIXME maybe ... */ BOOL res = True; uint32 admin_rid = 0x304; /* absolutely no idea. */ fstring rid_str ; diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index a994fc27fc..203b2c00bf 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -546,7 +546,10 @@ enum client_action { case 'm': { - int max_protocol = interpret_protocol(optarg,max_protocol); + /* FIXME ... max_protocol seems to be funny here */ + + int max_protocol = 0; + max_protocol = interpret_protocol(optarg,max_protocol); fprintf(stderr, "max protocol not currently supported\n"); break; } -- cgit