X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Size.xs;h=8373101a15effe21a0a7468146e6bb0b52432da7;hb=06b370a74368865008bcc18d1baaa0ba97a1fb2e;hp=127152febfd10432574309428a7dcb3e364f920f;hpb=d1888d0bf6f3c739044dc19ebd3114e3dc13bb47;p=p5sagit%2FDevel-Size.git diff --git a/Size.xs b/Size.xs index 127152f..8373101 100644 --- a/Size.xs +++ b/Size.xs @@ -312,18 +312,9 @@ cc_opclass(const OP * const o) size */ static void magic_size(pTHX_ const SV * const thing, struct state *st) { - MAGIC *magic_pointer; + MAGIC *magic_pointer = SvMAGIC(thing); - /* Is there any? */ - if (!SvMAGIC(thing)) { - /* No, bail */ - return; - } - - /* Get the base magic pointer */ - magic_pointer = SvMAGIC(thing); - - /* Have we seen the magic pointer? */ + /* Have we seen the magic pointer? (NULL has always been seen before) */ while (check_new(st, magic_pointer)) { st->total_size += sizeof(MAGIC);