]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
added some comments and removed an unnecessary check
authorAndrew Tridgell <tridge@samba.org>
Fri, 6 Jul 2001 00:14:56 +0000 (00:14 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 6 Jul 2001 00:14:56 +0000 (00:14 +0000)
source/lib/iconv.c

index 07d42eed8f64a67c475fb873ae27131e06342f27..0c722e71dd4b308be5331117dad97c18e806b713 100644 (file)
@@ -75,8 +75,6 @@ size_t smb_iconv(smb_iconv_t cd,
        }
 #endif
 
-       if (!inbuf || ! *inbuf || !outbuf || ! *outbuf) return 0;
-
        /* in most cases we can go direct */
        if (cd->direct) {
                return cd->direct(inbuf, inbytesleft, outbuf, outbytesleft);
@@ -117,6 +115,7 @@ smb_iconv_t smb_iconv_open(const char *tocode, const char *fromcode)
 
        if (!charsets[from].name || !charsets[to].name) {
 #ifdef HAVE_NATIVE_ICONV
+               /* its not builtin - see if iconv() has it */
                cd = iconv_open(tocode, fromcode);
                if (!cd)
 #endif
@@ -134,7 +133,7 @@ smb_iconv_t smb_iconv_open(const char *tocode, const char *fromcode)
        memset(ret, 0, sizeof(*ret));
 
 #ifdef HAVE_NATIVE_ICONV
-       /* see if we wil be using the native iconv */
+       /* see if we will be using the native iconv */
        if (cd) {
                ret->cd = cd;
                return ret;