From e397caa3a6a139fff2fed06e0223ee92582fa2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 5 May 2016 20:27:10 +0100 Subject: [PATCH] win: remove unneeded condition The size is checked beforehand, no need to check it again. PR-URL: https://github.com/libuv/libuv/pull/859 Reviewed-By: Colin Ihrig --- src/win/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/util.c b/src/win/util.c index 2944ddb76..4cebad390 100644 --- a/src/win/util.c +++ b/src/win/util.c @@ -124,7 +124,7 @@ int uv_exepath(char* buffer, size_t* size_ptr) { utf16_buffer, -1, buffer, - *size_ptr > INT_MAX ? INT_MAX : (int) *size_ptr, + (int) *size_ptr, NULL, NULL); if (utf8_len == 0) {