From 859f3d14eda5ecd59ed7a7172dc63cdfa2acba92 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 26 Dec 2014 05:51:36 +0000 Subject: never-NULL pointer check * dir.c (ruby_glob0): no need to check never-NULL pointer. reported by Denis Denisov . * win32/file.c (rb_file_expand_path_internal): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/file.c b/win32/file.c index e2b7f93aa4..f51a778fbc 100644 --- a/win32/file.c +++ b/win32/file.c @@ -626,7 +626,7 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na if (whome) xfree(whome); - if (wfullpath && wfullpath != wfullpath_buffer) + if (wfullpath != wfullpath_buffer) xfree(wfullpath); if (fullpath) -- cgit v1.2.3