From fa3054c7cc95f8a7c8978eb441ae559cf5a3bdd7 Mon Sep 17 00:00:00 2001 From: kai Date: Fri, 10 May 2013 13:10:40 +0200 Subject: [PATCH] Fix uninitialized var in TemplateDeclaration. This is a partial backport of https://github.com/D-Programming-Language/dmd/commit/214b0fdb26837a7ec0d79070c30d1a116cd571d1. --- dmd2/template.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dmd2/template.c b/dmd2/template.c index 367db45d..418f617d 100644 --- a/dmd2/template.c +++ b/dmd2/template.c @@ -421,6 +421,7 @@ TemplateDeclaration::TemplateDeclaration(Loc loc, Identifier *id, this->literal = 0; this->ismixin = ismixin; this->previous = NULL; + this->protection = PROTundefined; // Compute in advance for Ddoc's use if (members)