[librsvg] Fix variables that could be accessed uninitialized
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Fix variables that could be accessed uninitialized
- Date: Mon, 26 Mar 2012 12:25:37 +0000 (UTC)
commit 37ca8719be7946052780b14901d8befa56c24074
Author: Felix Riemann <friemann gnome org>
Date: Fri Mar 23 22:00:04 2012 +0100
Fix variables that could be accessed uninitialized
Fix warnings when building with -Wuninitialized.
Bug #672725.
rsvg-base.c | 3 +++
rsvg-filter.c | 1 -
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index 8d55a27..9cb8f18 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -819,6 +819,9 @@ rsvg_entity_decl (void *data, const xmlChar * name, int type,
NULL,
&entity_data_len,
NULL);
+ else
+ entity_data = NULL;
+
if (entity_data) {
content = xmlCharStrndup (entity_data, entity_data_len);
g_free (entity_data);
diff --git a/rsvg-filter.c b/rsvg-filter.c
index 53e0f59..bc54f80 100644
--- a/rsvg-filter.c
+++ b/rsvg-filter.c
@@ -1740,7 +1740,6 @@ rsvg_filter_primitive_merge_render (RsvgFilterPrimitive * self, RsvgFilterContex
output = _rsvg_image_surface_new (ctx->width, ctx->height);
if (output == NULL) {
- cairo_surface_destroy (in);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]