Browse Source

compat: remove shadowing variable

pull/68/head
Rémi Denis-Courmont 9 years ago
parent
commit
5051dc1729
  1. 4
      compat/realpath.c

4
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)

Loading…
Cancel
Save