As stash can't be NULL, no need to check name_stash is not NULL before
authorNicholas Clark <nick@ccl4.org>
Thu, 11 Sep 2008 21:46:28 +0000 (21:46 +0000)
committerNicholas 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

index 3e52535..461eedf 100644 (file)
@@ -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);