initialize errno

This commit is contained in:
Antony Dovgal 2007-01-24 00:33:44 +00:00
parent d6af95d1a4
commit 4b3197ce2b

View File

@ -784,6 +784,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;