[librsvg] Fix compiler warnings.



commit 228a39a27d0c40afd17d37fb46a571f5c5120ac3
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Mar 30 07:30:33 2010 +0200

    Fix compiler warnings.
    
    Correctly initialize a variable, and do not set twice a variable on the
    same line.

 rsvg-convert.c      |    2 +-
 rsvg-paint-server.c |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/rsvg-convert.c b/rsvg-convert.c
index 115d825..5983dea 100644
--- a/rsvg-convert.c
+++ b/rsvg-convert.c
@@ -128,7 +128,7 @@ main (int argc, char **argv)
     char *format = NULL;
     char *output = NULL;
     int keep_aspect_ratio = FALSE;
-    guint32 background_color = NULL;
+    guint32 background_color = 0;
     char *background_color_str = NULL;
     char *base_uri = NULL;
     gboolean using_stdin = FALSE;
diff --git a/rsvg-paint-server.c b/rsvg-paint-server.c
index 0132b1b..95cbf87 100644
--- a/rsvg-paint-server.c
+++ b/rsvg-paint-server.c
@@ -461,8 +461,7 @@ rsvg_new_pattern (void)
     _rsvg_affine_identity (pattern->affine);
     pattern->super.set_atts = rsvg_pattern_set_atts;
     pattern->hasx = pattern->hasy = pattern->haswidth = pattern->hasheight = pattern->hasbbox =
-        pattern->hascbox = pattern->hasvbox = pattern->hasaspect = pattern->hastransform =
-        pattern->hasaspect = FALSE;
+        pattern->hascbox = pattern->hasvbox = pattern->hasaspect = pattern->hastransform = FALSE;
     return &pattern->super;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]