From: Derick Rethans Date: Mon, 4 Jul 2011 17:02:39 +0000 (+0100) Subject: Initialise variable to NULL. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=f196f01704d63a8826bd7b957af242b9cf16d84d;p=web%2Fkonrad%2Ftwig.git Initialise variable to NULL. --- diff --git a/twig.c b/twig.c index d2cc1ea..832a9b9 100644 --- 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) {