From a03992f19b268ca212ada5869c6fc93da5ac3c35 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Jul 2001 07:50:54 +0000 Subject: [PATCH] fixed uninitialised variable --- source/lib/charcnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c index 388c05f8163..154e9971e56 100644 --- a/source/lib/charcnv.c +++ b/source/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"; -- 2.47.3