Skip to content

Commit 6619f79

Browse files
committed
fixup! msvc: work around iconv() not setting errno
1 parent 14b1b90 commit 6619f79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-compat-util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ static inline size_t msvc_iconv(iconv_t conv,
290290
const char **inpos, size_t *insize,
291291
char **outpos, size_t *outsize)
292292
{
293-
int saved_errno = errno, res;
293+
int saved_errno = errno;
294+
size_t res;
294295

295296
errno = ENOENT;
296297
res = iconv(conv, inpos, insize, outpos, outsize);

0 commit comments

Comments
 (0)