1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

win32.c: suppress warning

* win32/win32.c (rb_w32_home_dir): suppress sequence-point
  warning, REALLOC_N re-assigns the variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-12-07 03:19:33 +00:00
parent f4b51e69dc
commit 9db0b2d7ee

View file

@ -581,7 +581,7 @@ rb_w32_home_dir(void)
xfree(buffer);
return NULL;
}
buffer = REALLOC_N(buffer, WCHAR, lstrlenW(buffer) + 1);
REALLOC_N(buffer, WCHAR, lstrlenW(buffer) + 1);
break;
}