From 9f6495f44704beb6ad0ed13bf4aa01e6deef05d4 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 7 Jul 2011 14:06:03 +0100 Subject: [PATCH] Return the value immediately. --- twig.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/twig.c b/twig.c index c18b4a6..c1239a8 100644 --- a/twig.c +++ b/twig.c @@ -672,8 +672,8 @@ PHP_FUNCTION(twig_template_get_attributes) } convert_to_string(item); - ret = TWIG_PROPERTY(object, Z_STRVAL_P(item)); // this is obviously wrong - RETVAL_ZVAL(ret, 1, 0); + ret = TWIG_PROPERTY(object, item); + RETURN_ZVAL(ret, 1, 0); } } /* -- 1.7.2.5