]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed uninitialised variable
authorAndrew Tridgell <tridge@samba.org>
Wed, 4 Jul 2001 07:50:54 +0000 (07:50 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 4 Jul 2001 07:50:54 +0000 (07:50 +0000)
source/lib/charcnv.c

index 388c05f816374e883814f1daad62c65e01daa29a..154e9971e560b08e00210a16c7b2a4b838230a1c 100644 (file)
@@ -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";