From 0225d0c26d8512e72b3fcac4a9e40592f9cb131f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Jul 2001 07:50:54 +0000 Subject: fixed uninitialised variable (This used to be commit a03992f19b268ca212ada5869c6fc93da5ac3c35) --- source3/lib/charcnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/charcnv.c') diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 388c05f816..154e9971e5 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -85,7 +85,7 @@ static size_t convert_string(smb_iconv_t descriptor, o_len=destlen; retval=smb_iconv(descriptor,&inbuf, &i_len, &outbuf, &o_len); if(retval==-1) - { char *reason; + { char *reason="unknown error"; switch(errno) { case EINVAL: reason="Incomplete multybyte sequence"; break; case E2BIG: reason="No more room"; -- cgit