[librsvg] fix compiler warnings.
- From: Hiroyuki Ikezoe <hiikezoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] fix compiler warnings.
- Date: Tue, 6 Apr 2010 11:55:32 +0000 (UTC)
commit 39685a8b40e2515d6aada78a59114b559a8531b6
Author: Hiroyuki Ikezoe <poincare ikezoe net>
Date: Tue Apr 6 19:05:57 2010 +0900
fix compiler warnings.
rsvg-base.c | 2 +-
rsvg-gobject.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index d6b1f23..c25ed0e 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -808,7 +808,7 @@ rsvg_entity_decl (void *data, const xmlChar * name, int type,
resolvedPublicId = xmlBuildRelativeURI (publicId, (xmlChar*) rsvg_handle_get_base_uri (ctx));
if (type == XML_EXTERNAL_PARAMETER_ENTITY && !content) {
- GByteArray *arr;
+ GByteArray *arr = NULL;
if (systemId)
arr = _rsvg_acquire_xlink_href_resource ((const char *) systemId,
diff --git a/rsvg-gobject.c b/rsvg-gobject.c
index 045640f..8c6d619 100644
--- a/rsvg-gobject.c
+++ b/rsvg-gobject.c
@@ -81,7 +81,7 @@ rsvg_ctx_free_helper (gpointer key, gpointer value, gpointer user_data)
xmlFree (entval->orig);
xmlFree (entval);
#else
- xmlFreeNode(entval);
+ xmlFreeNode((xmlNode *) entval);
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]