From fbb4c072ef3837554392eff16387b4ac2d5d88b5 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 20 Mar 2009 01:42:43 -0400 Subject: Initialize the value when allowing overrides --- sigscript/Global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sigscript') diff --git a/sigscript/Global.h b/sigscript/Global.h index 1f1807c1..c0839a02 100644 --- a/sigscript/Global.h +++ b/sigscript/Global.h @@ -42,7 +42,7 @@ ALLOW_OVERRIDE(class, type, variable); \ } #define ALLOW_OVERRIDE(class, type, variable) \ - type value; \ + type value = type(); \ if (valueOfType(#variable, &value) && m_##class->variable##Check(value)) \ return value -- cgit