diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-26 05:51:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-26 05:51:36 +0000 |
commit | 859f3d14eda5ecd59ed7a7172dc63cdfa2acba92 (patch) | |
tree | 696e310045987ee69419787515593fdb506a542f /win32 | |
parent | ea9ff28f80165ec054106702ee38f5995bc4a491 (diff) | |
download | ruby-859f3d14eda5ecd59ed7a7172dc63cdfa2acba92.tar.gz |
never-NULL pointer check
* dir.c (ruby_glob0): no need to check never-NULL pointer.
reported by Denis Denisov <denji0k AT gmail.com>.
* 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
Diffstat (limited to 'win32')
-rw-r--r-- | win32/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |