]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Wed, 24 Jan 2007 00:33:51 +0000 (00:33 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 24 Jan 2007 00:33:51 +0000 (00:33 +0000)
ext/iconv/iconv.c

index 8f68ef6708081c4911fb030b06378bd3f3552f30..3447403c14c7ab880409868deeb83690a5857417 100644 (file)
@@ -719,6 +719,7 @@ static php_iconv_err_t _php_iconv_substr(smart_str *pretval,
        }
 
        cd2 = (iconv_t)NULL;
+       errno = 0;
 
        for (in_p = str, in_left = nbytes, cnt = 0; in_left > 0 && len > 0; ++cnt) {
                size_t prev_in_left;