summaryrefslogtreecommitdiffstats
path: root/src/libcroco
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2013-10-07 19:25:41 +0000
committerKris <Kris.De.Gussem@hotmail.com>2013-10-07 19:25:41 +0000
commit1a36f75406b76a837ac8d79719a7c23f8d693fed (patch)
tree47c10381fb58bc37a35a0972587527b0515bd836 /src/libcroco
parentcppcheck: initialisation (diff)
downloadinkscape-1a36f75406b76a837ac8d79719a7c23f8d693fed.tar.gz
inkscape-1a36f75406b76a837ac8d79719a7c23f8d693fed.zip
cppcheck
(bzr r12669)
Diffstat (limited to 'src/libcroco')
-rw-r--r--src/libcroco/cr-num.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libcroco/cr-num.c b/src/libcroco/cr-num.c
index c714894d6..062784c84 100644
--- a/src/libcroco/cr-num.c
+++ b/src/libcroco/cr-num.c
@@ -91,15 +91,13 @@ cr_num_new_with_val (gdouble a_val, enum CRNumType a_type)
guchar *
cr_num_to_string (CRNum * a_this)
{
- gdouble test_val = 0.0;
-
guchar *tmp_char1 = NULL,
*tmp_char2 = NULL,
*result = NULL;
g_return_val_if_fail (a_this, NULL);
- test_val = a_this->val - (glong) a_this->val;
+ gdouble test_val = a_this->val - (glong) a_this->val;
if (!test_val) {
tmp_char1 = (guchar *)g_strdup_printf ("%ld", (glong) a_this->val);