check_new() is now never called with NULL st, so simplify it slightly.
Nicholas Clark [Sun, 17 Apr 2011 15:13:55 +0000 (16:13 +0100)]
Size.xs

diff --git a/Size.xs b/Size.xs
index 6eb2982..65bfd7b 100644 (file)
--- a/Size.xs
+++ b/Size.xs
@@ -83,11 +83,9 @@ check_new(struct state *st, const void *const p) {
     U8 **leaf_p;
     U8 *leaf;
     unsigned int i;
-    void **tv_p;
+    void **tv_p = (void **) (st->tracking);
 
-
-    if (NULL == p || NULL == st) return FALSE;
-    tv_p = (void **) (st->tracking);
+    if (NULL == p) return FALSE;
     TRY_TO_CATCH_SEGV { 
         const char c = *(const char *)p;
     }