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 | 4f9868552e2aa66384598b5bc0fc9414e3cc8aba (patch) | |
tree | 5f22302de3f437b1ba7e2e1d387d9665efda08fd /transcode.c | |
parent | 6559da7fc87af575893087469183c9cedf5bd3cd (diff) | |
download | ruby-4f9868552e2aa66384598b5bc0fc9414e3cc8aba.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 'transcode.c')
-rw-r--r-- | transcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c index 39b4b0bab2..1977498bc6 100644 --- a/transcode.c +++ b/transcode.c @@ -2912,7 +2912,7 @@ econv_free(void *ptr) static size_t econv_memsize(const void *ptr) { - return ptr ? sizeof(rb_econv_t) : 0; + return sizeof(rb_econv_t); } static const rb_data_type_t econv_data_type = { |