From b8b89f61a616a43ae4b816f1c867915c51a1b6a3 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 8 Jul 2011 13:01:22 +0100 Subject: [PATCH] Fixed the uninitialized ptr check. This makes all tests in Twig_TemplateTest pass! --- twig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/twig.c b/twig.c index 59d2b18..b3185ca 100644 --- a/twig.c +++ b/twig.c @@ -329,7 +329,7 @@ zval *TWIG_PROPERTY(zval *object, zval *propname) if (Z_OBJ_HT_P(object)->read_property) { tmp = Z_OBJ_HT_P(object)->read_property(object, propname, BP_VAR_IS TSRMLS_CC); - if (&tmp != &EG(uninitialized_zval_ptr)) { + if (tmp != EG(uninitialized_zval_ptr)) { return tmp; } else { return NULL; -- 1.7.2.5