From 0424f0f6ad4fea10a442edde3baf8425b9491c77 Mon Sep 17 00:00:00 2001
From: Alexander Shishkin <alexander.shishkin@teleca.com>
Date: Wed, 23 Jul 2008 11:48:48 +0300
Subject: [PATCH] shut 'may be used uninitialized' warnings of gcc 4.3

Signed-off-by: Alexander Shishkin <alexander.shishkin@teleca.com>
---
 lib/libc/citrus/citrus_iconv.c  |    2 +-
 lib/libc/citrus/citrus_mapper.c |    2 +-
 lib/libc/rpc/rpcb_clnt.c        |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/libc/citrus/citrus_iconv.c b/lib/libc/citrus/citrus_iconv.c
index 2baf87f..31e65bf 100644
--- a/lib/libc/citrus/citrus_iconv.c
+++ b/lib/libc/citrus/citrus_iconv.c
@@ -326,7 +326,7 @@ _citrus_iconv_open(struct _citrus_iconv * __restrict * __restrict rcv,
 		   const char * __restrict src, const char * __restrict dst)
 {
 	int ret;
-	struct _citrus_iconv_shared *ci;
+	struct _citrus_iconv_shared *ci = NULL;
 	struct _citrus_iconv *cv;
 	char realsrc[PATH_MAX], realdst[PATH_MAX];
 	char buf[PATH_MAX], path[PATH_MAX];
diff --git a/lib/libc/citrus/citrus_mapper.c b/lib/libc/citrus/citrus_mapper.c
index 7fa8ac1..7265875 100644
--- a/lib/libc/citrus/citrus_mapper.c
+++ b/lib/libc/citrus/citrus_mapper.c
@@ -319,7 +319,7 @@ _citrus_mapper_open(struct _citrus_mapper_area *__restrict ma,
 {
 	int ret;
 	char linebuf[PATH_MAX];
-	const char *module, *variable;
+	const char *module, *variable = NULL;
 	struct _citrus_mapper *cm;
 	int hashval;
 
diff --git a/lib/libc/rpc/rpcb_clnt.c b/lib/libc/rpc/rpcb_clnt.c
index 1329a18..94029f0 100644
--- a/lib/libc/rpc/rpcb_clnt.c
+++ b/lib/libc/rpc/rpcb_clnt.c
@@ -337,6 +337,7 @@ getclnthandle(host, nconf, targaddr)
 	/* Get the address of the rpcbind.  Check cache first */
 	client = NULL;
 	addr_to_delete.len = 0;
+	addr_to_delete.buf = NULL;
 	rwlock_rdlock(&rpcbaddr_cache_lock);
 	ad_cache = check_cache(host, nconf->nc_netid);
 	if (ad_cache != NULL) {
-- 
1.5.5.4

