projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9096e3f
)
Fixed the uninitialized ptr check. This makes all tests in Twig_TemplateTest pass!
author
Derick Rethans
<github@derickrethans.nl>
Fri, 8 Jul 2011 12:01:22 +0000 (13:01 +0100)
committer
Derick Rethans
<github@derickrethans.nl>
Fri, 8 Jul 2011 12:01:22 +0000 (13:01 +0100)
twig.c
patch
|
blob
|
history
diff --git
a/twig.c
b/twig.c
index
59d2b18
..
b3185ca
100644
(file)
--- 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;