aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
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
commit2f5b8f05299731e1187475ff4bd6b1618bac3a1a (patch)
tree5f22302de3f437b1ba7e2e1d387d9665efda08fd /parse.y
parent6a15a37f0b8f03c98f4b47ec777efa1ae75d7526 (diff)
downloadruby-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 'parse.y')
-rw-r--r--parse.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 616418327a..02529f47f6 100644
--- a/parse.y
+++ b/parse.y
@@ -10807,7 +10807,6 @@ parser_memsize(const void *ptr)
struct local_vars *local;
size_t size = sizeof(*parser);
- if (!ptr) return 0;
size += toksiz;
for (local = lvtbl; local; local = local->prev) {
size += sizeof(*local);