From bded4f91425e86232947a287ad2aa913be105b07 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 4 Jan 2015 12:12:16 -0800 Subject: [PATCH] Fix uninitialized variable in decl_enum(). --- sourcepawn/compiler/sc1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcepawn/compiler/sc1.cpp b/sourcepawn/compiler/sc1.cpp index 0db9c615..ec76e3d3 100644 --- a/sourcepawn/compiler/sc1.cpp +++ b/sourcepawn/compiler/sc1.cpp @@ -4647,9 +4647,9 @@ static void decl_enum(int vclass) char *str; int tag,explicittag; cell increment,multiplier; - constvalue *enumroot; LayoutSpec spec; symbol *enumsym = nullptr; + constvalue *enumroot = nullptr; /* get an explicit tag, if any (we need to remember whether an explicit * tag was passed, even if that explicit tag was "_:", so we cannot call