From: Andrew Tridgell Date: Wed, 4 Jul 2001 07:50:54 +0000 (+0000) Subject: fixed uninitialised variable X-Git-Tag: samba-2.2.1~43^2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a03992f19b268ca212ada5869c6fc93da5ac3c35;p=thirdparty%2Fsamba.git fixed uninitialised variable --- 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";