diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-20 01:42:43 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-20 01:42:43 -0400 |
commit | fbb4c072ef3837554392eff16387b4ac2d5d88b5 (patch) | |
tree | 4f2b4cae6fbc91388df0534a5684be5f2261c78b /sigscript | |
parent | 4837126a68b60305c044816a403e28fd88bec5d7 (diff) | |
download | sigen-fbb4c072ef3837554392eff16387b4ac2d5d88b5.tar.gz sigen-fbb4c072ef3837554392eff16387b4ac2d5d88b5.tar.xz sigen-fbb4c072ef3837554392eff16387b4ac2d5d88b5.zip |
Initialize the value when allowing overrides
Diffstat (limited to 'sigscript')
-rw-r--r-- | sigscript/Global.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |