From 48443714b7c6521571e9a029d4221d8f75969b05 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 26 Jul 2013 08:50:33 +0000 Subject: 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 --- win32/file.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'win32') 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)); -- cgit v1.2.3