projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d43aa7f
)
As stash can't be NULL, no need to check name_stash is not NULL before
author
Nicholas Clark
<nick@ccl4.org>
Thu, 11 Sep 2008 21:46:28 +0000
(21:46 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Thu, 11 Sep 2008 21:46:28 +0000
(21:46 +0000)
comparing the two, as a NULL == NULL comparison can't happen.
p4raw-id: //depot/perl@34352
universal.c
patch
|
blob
|
history
diff --git
a/universal.c
b/universal.c
index
3e52535
..
461eedf
100644
(file)
--- 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);