Initialise variable to NULL.
authorDerick Rethans <github@derickrethans.nl>
Mon, 4 Jul 2011 17:02:39 +0000 (18:02 +0100)
committerDerick Rethans <github@derickrethans.nl>
Mon, 4 Jul 2011 17:02:39 +0000 (18:02 +0100)
twig.c

diff --git a/twig.c b/twig.c
index d2cc1ea..832a9b9 100644 (file)
--- a/twig.c
+++ b/twig.c
@@ -555,7 +555,7 @@ PHP_FUNCTION(twig_template_get_attributes)
                }
        }
 */
-       char *class_name;
+       char *class_name = NULL;
        zval *tmp_self_cache;
 
        if (Z_TYPE_P(object) == IS_OBJECT) {