Initialise ret to NULL.
authorDerick Rethans <github@derickrethans.nl>
Thu, 30 Jun 2011 13:25:00 +0000 (14:25 +0100)
committerDerick Rethans <github@derickrethans.nl>
Thu, 30 Jun 2011 13:25:00 +0000 (14:25 +0100)
twig.c

diff --git a/twig.c b/twig.c
index 07b7a64..02dfa2b 100644 (file)
--- a/twig.c
+++ b/twig.c
@@ -417,7 +417,7 @@ PHP_FUNCTION(twig_template_get_attributes)
        zval *object;
        zval *item;
        zval *arguments;
-       zval *ret;
+       zval *ret = NULL;
        char *type = NULL;
        int   type_len = 0;
        zend_bool isDefinedTest = 0;