ruby-changes:30139
From: nobu <ko1@a...>
Date: Fri, 26 Jul 2013 17:52:14 +0900 (JST)
Subject: [ruby-changes:30139] nobu:r42191 (trunk): win32/file.c: suppress warning
nobu 2013-07-26 17:50:33 +0900 (Fri, 26 Jul 2013) New Revision: 42191 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42191 Log: 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(). Modified files: trunk/win32/file.c Index: win32/file.c =================================================================== --- win32/file.c (revision 42190) +++ win32/file.c (revision 42191) @@ -37,9 +37,6 @@ convert_mb_to_wchar(const char *str, wch https://github.com/ruby/ruby/blob/trunk/win32/file.c#L37 { size_t len; - if (!str) - return; - len = MultiByteToWideChar(code_page, 0, str, -1, NULL, 0) + 1; *wstr = (wchar_t *)xmalloc(len * sizeof(wchar_t)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/