aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-26 08:50:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-26 08:50:33 +0000
commit48443714b7c6521571e9a029d4221d8f75969b05 (patch)
treee7554921b7cbb3f1e12e8b5a5bb2e510b3612e90 /win32
parentc4c78f758fd50f2291cbdab221c86ef1ecaafeb9 (diff)
downloadruby-48443714b7c6521571e9a029d4221d8f75969b05.tar.gz
win32/file.c: suppress warning
* win32/file.c (convert_mb_to_wchar): omit never-true NULL check to suppress maybe-uninitialized warning in rb_file_load_ok(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/file.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/win32/file.c b/win32/file.c
index c9dd8b49a7..407824906a 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -37,9 +37,6 @@ convert_mb_to_wchar(const char *str, wchar_t **wstr, size_t *wstr_len, UINT code
{
size_t len;
- if (!str)
- return;
-
len = MultiByteToWideChar(code_page, 0, str, -1, NULL, 0) + 1;
*wstr = (wchar_t *)xmalloc(len * sizeof(wchar_t));