From cab76c3c33883aad444eefb6562ab1b27d9ca88a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 2 Nov 2005 00:19:26 +0000 Subject: [PATCH] r11451: Fix -O1 "might be using uninitialized" errors. Jeremy. --- source/libads/ldap_utils.c | 2 +- source/rpc_server/srv_samr_nt.c | 2 +- source/smbd/reply.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/libads/ldap_utils.c b/source/libads/ldap_utils.c index 03cdd339f0d..18caa2c63ae 100644 --- a/source/libads/ldap_utils.c +++ b/source/libads/ldap_utils.c @@ -31,7 +31,7 @@ ADS_STATUS ads_do_search_retry(ADS_STRUCT *ads, const char *bind_path, int scope const char *expr, const char **attrs, void **res) { - ADS_STATUS status; + ADS_STATUS status = ADS_SUCCESS; int count = 3; char *bp; diff --git a/source/rpc_server/srv_samr_nt.c b/source/rpc_server/srv_samr_nt.c index d1d751d8ae8..71272a9a98b 100644 --- a/source/rpc_server/srv_samr_nt.c +++ b/source/rpc_server/srv_samr_nt.c @@ -799,7 +799,7 @@ NTSTATUS _samr_query_dispinfo(pipes_struct *p, SAMR_Q_QUERY_DISPINFO *q_u, SAM_DISPINFO_CTR *ctr; uint32 temp_size=0, total_data_size=0; - NTSTATUS disp_ret; + NTSTATUS disp_ret = NT_STATUS_UNSUCCESSFUL; uint32 num_account = 0; enum remote_arch_types ra_type = get_remote_arch(); int max_sam_entries = (ra_type == RA_WIN95) ? MAX_SAM_ENTRIES_W95 : MAX_SAM_ENTRIES_W2K; diff --git a/source/smbd/reply.c b/source/smbd/reply.c index ae7710b48fd..f83b0ff7465 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -5126,7 +5126,7 @@ int reply_lockingX(connection_struct *conn, char *inbuf, char *outbuf, (locktype & LOCKING_ANDX_LARGE_FILES)?True:False; BOOL err; BOOL my_lock_ctx = False; - NTSTATUS status; + NTSTATUS status = NT_STATUS_UNSUCCESSFUL; START_PROFILE(SMBlockingX);