diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-09 00:38:32 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-09 00:38:32 +0000 |
commit | 2f5b8f05299731e1187475ff4bd6b1618bac3a1a (patch) | |
tree | 5f22302de3f437b1ba7e2e1d387d9665efda08fd /dir.c | |
parent | 6a15a37f0b8f03c98f4b47ec777efa1ae75d7526 (diff) | |
download | bundler-2f5b8f05299731e1187475ff4bd6b1618bac3a1a.tar.gz |
* *.c (*_memsize): do not check ptr.
NULL checking is finished Before call of memsize functions.
See r52979.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -438,7 +438,7 @@ dir_free(void *ptr) static size_t dir_memsize(const void *ptr) { - return ptr ? sizeof(struct dir_data) : 0; + return sizeof(struct dir_data); } static const rb_data_type_t dir_data_type = { |