From: Antony Dovgal Date: Wed, 24 Jan 2007 00:33:51 +0000 (+0000) Subject: MFH X-Git-Tag: RELEASE_1_2_3~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d32dc5bda0c7e27c570f52903efa9a04f4090ae2;p=php MFH --- diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 8f68ef6708..3447403c14 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -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;