vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Thu Feb 22 21:50:09 2018 +0200| [5051dc1729b575d4fdfa9ff931e698dc1bf74c3f] | committer: Rémi Denis-Courmont
compat: remove shadowing variable > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5051dc1729b575d4fdfa9ff931e698dc1bf74c3f --- compat/realpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/realpath.c b/compat/realpath.c index 937b9f5c30..ac1f9f6214 100644 --- a/compat/realpath.c +++ b/compat/realpath.c @@ -37,7 +37,7 @@ char *realpath(const char * restrict relpath, char * restrict resolved_path) } #ifdef _WIN32 - int len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 ); + size_t len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 ); if (len == 0) return NULL; @@ -51,7 +51,7 @@ char *realpath(const char * restrict relpath, char * restrict resolved_path) free(wrelpath); if (wfullpath != NULL) { - size_t len = WideCharToMultiByte( CP_UTF8, 0, wfullpath, -1, NULL, 0, NULL, NULL ); + len = WideCharToMultiByte( CP_UTF8, 0, wfullpath, -1, NULL, 0, NULL, NULL ); if (len != 0) { if (resolved_path != NULL) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits