aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 00:38:32 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-09 00:38:32 +0000
commit4f9868552e2aa66384598b5bc0fc9414e3cc8aba (patch)
tree5f22302de3f437b1ba7e2e1d387d9665efda08fd /io.c
parent6559da7fc87af575893087469183c9cedf5bd3cd (diff)
downloadruby-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 'io.c')
-rw-r--r--io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/io.c b/io.c
index 9306b81d18..99cd9bb5cd 100644
--- a/io.c
+++ b/io.c
@@ -7764,7 +7764,6 @@ argf_memsize(const void *ptr)
{
const struct argf *p = ptr;
size_t size = sizeof(*p);
- if (!ptr) return 0;
if (p->inplace) size += strlen(p->inplace) + 1;
return size;
}