Index: Source/bindings/templates/attributes.cpp |
diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp |
index 6b0335abbe8629bf4ae923e71abd154bfdc13ed6..ac1c3457d83ffe56a887676c97e165895aef33d3 100644 |
--- a/Source/bindings/templates/attributes.cpp |
+++ b/Source/bindings/templates/attributes.cpp |
@@ -50,7 +50,7 @@ const v8::PropertyCallbackInfo<v8::Value>& info |
bool isNull = false; |
{% endif %} |
{% if attribute.is_implemented_in_private_script %} |
- {{attribute.cpp_type}} result; |
+ {{attribute.cpp_type}} result{% if attribute.cpp_type == 'int' %} = 0{% endif %}; |
if (!{{attribute.cpp_value_original}}) |
return; |
{% elif attribute.cpp_value_original %} |