summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-11-02 00:19:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:16 -0500
commitc9effb004cb4bb9baa87fb429f22c834226708bb (patch)
tree7810eb816b11d7fad89b584f8fecb53929ed33bd /source3
parenta3d66dfef7025a9712f62cf3dda8ef910f848cf4 (diff)
downloadsamba-c9effb004cb4bb9baa87fb429f22c834226708bb.tar.gz
samba-c9effb004cb4bb9baa87fb429f22c834226708bb.tar.bz2
samba-c9effb004cb4bb9baa87fb429f22c834226708bb.zip
r11451: Fix -O1 "might be using uninitialized" errors.
Jeremy. (This used to be commit cab76c3c33883aad444eefb6562ab1b27d9ca88a)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/ldap_utils.c2
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
-rw-r--r--source3/smbd/reply.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c
index 03cdd339f0..18caa2c63a 100644
--- a/source3/libads/ldap_utils.c
+++ b/source3/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/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index d1d751d8ae..71272a9a98 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/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/source3/smbd/reply.c b/source3/smbd/reply.c
index ae7710b48f..f83b0ff746 100644
--- a/source3/smbd/reply.c
+++ b/source3/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);