summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-07 03:19:33 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-07 03:19:33 (GMT)
commit9db0b2d7eeae0986e79444a8721dc49ec3234aff (patch)
tree2eac8d6e127ff7973df7e6915470a81706606653 /win32/win32.c
parentf4b51e69dcf21f042be0ffb236e936bc99a511f0 (diff)
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
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 1fb72b3..17dce8d 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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;
}