diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-09 01:01:17 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-09 01:01:17 +0000 |
commit | dff42b0ea0e6ef368ebbe0a666ff9be8d708c6df (patch) | |
tree | 747bdfdc049be6d4290cf28a1a7675fe7a8efcfa /ext/socket/ifaddr.c | |
parent | e76567c15b5b8bf5d45514d0c70cb40f6b15731f (diff) | |
download | ruby-dff42b0ea0e6ef368ebbe0a666ff9be8d708c6df.tar.gz |
* ext/**/*.c (*_memsize): same as r52986 for extensions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/ifaddr.c')
-rw-r--r-- | ext/socket/ifaddr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/socket/ifaddr.c b/ext/socket/ifaddr.c index 37edcaffb1..be2cb65602 100644 --- a/ext/socket/ifaddr.c +++ b/ext/socket/ifaddr.c @@ -62,8 +62,6 @@ ifaddr_memsize(const void *ptr) { const rb_ifaddr_t *ifaddr; const rb_ifaddr_root_t *root; - if (ptr == NULL) - return 0; ifaddr = ptr; root = get_root(ifaddr); return sizeof(rb_ifaddr_root_t) + (root->numifaddrs - 1) * sizeof(rb_ifaddr_t); |