From d5db2773777d1002792ff9c807000e55c00c7611 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 14 Oct 2016 12:45:15 +0200 Subject: [PATCH] win: silence -Wmaybe-uninitialized warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compiler is wrong about it being used uninitialized but the warning is sufficiently annoying that I decided to squelch it. PR-URL: https://github.com/libuv/libuv/pull/1097 Reviewed-By: Andrius Bentkus Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno Reviewed-By: Saúl Ibarra Corretgé --- src/win/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/fs.c b/src/win/fs.c index f1711acf..dc0ac89a 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -123,7 +123,7 @@ INLINE static int fs__capture_path(uv_fs_t* req, const char* path, const char* new_path, const int copy_path) { char* buf; char* pos; - ssize_t buf_sz = 0, path_len, pathw_len = 0, new_pathw_len = 0; + ssize_t buf_sz = 0, path_len = 0, pathw_len = 0, new_pathw_len = 0; /* new_path can only be set if path is also set. */ assert(new_path == NULL || path != NULL);