Commit 228a39a2 authored by Vincent Untz's avatar Vincent Untz

Fix compiler warnings.

Correctly initialize a variable, and do not set twice a variable on the
same line.
parent 95eaad11
......@@ -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;
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment