diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-09-11 21:46:28 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-09-11 21:46:28 +0000 |
commit | 90903f12d8c8bec5cac10a53dad3999617414aed (patch) | |
tree | 2c26a62b5f6476aa85fe95489c78914a046ebc00 /universal.c | |
parent | d43aa7f92b1a0cc0cbce5336d185006ba5ae1b4b (diff) | |
download | perl-90903f12d8c8bec5cac10a53dad3999617414aed.tar.gz |
As stash can't be NULL, no need to check name_stash is not NULL before
comparing the two, as a NULL == NULL comparison can't happen.
p4raw-id: //depot/perl@34352
Diffstat (limited to 'universal.c')
-rw-r--r-- | universal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/universal.c b/universal.c index 3e52535312..461eedfcb1 100644 --- a/universal.c +++ b/universal.c @@ -50,7 +50,7 @@ S_isa_lookup(pTHX_ HV *stash, const char * const name) /* A stash/class can go by many names (ie. User == main::User), so we compare the stash itself just in case */ - if (name_stash && ((const HV *)stash == name_stash)) + if ((const HV *)stash == name_stash) return TRUE; hvname = HvNAME_get(stash); |