summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2011-11-10 22:23:06 +0000
committerKris <Kris.De.Gussem@hotmail.com>2011-11-10 22:23:06 +0000
commit57558641a9819e4da97bc014ac35f9323306ae1f (patch)
tree4ef9ae0a5cea8376a1750f58e167088e4629ca6d /src/xml
parentlpe: add slider to scalar param optionally (does not work very well yet) (diff)
downloadinkscape-57558641a9819e4da97bc014ac35f9323306ae1f.tar.gz
inkscape-57558641a9819e4da97bc014ac35f9323306ae1f.zip
cppcheck: initialization / warning cleanup
(bzr r10736)
Diffstat (limited to 'src/xml')
-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();