summaryrefslogtreecommitdiffstats
path: root/src/xml/repr-css.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/repr-css.cpp')
-rw-r--r--src/xml/repr-css.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml/repr-css.cpp b/src/xml/repr-css.cpp
index 8de85c36d..ced4f5da4 100644
--- a/src/xml/repr-css.cpp
+++ b/src/xml/repr-css.cpp
@@ -307,7 +307,7 @@ sp_repr_css_merge_from_decl(SPCSSAttr *css, CRDeclaration const *const decl)
// the additional benefit of respecting the numerical precission set in the SVG Output
// preferences. We assume any numerical part comes first (if not, the whole string is copied).
std::stringstream ss( value_unquoted );
- double number;
+ double number = 0;
std::string characters;
std::string temp;
bool number_valid = !(ss >> number).fail();