[librsvg] rsvg_load_read_stream_sync(): Don't use an extra GError
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg_load_read_stream_sync(): Don't use an extra GError
- Date: Fri, 7 Dec 2018 17:29:50 +0000 (UTC)
commit 57556b1f3e2a3ce82cafa40283a2c79cbdfba88e
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Dec 7 11:13:38 2018 -0600
rsvg_load_read_stream_sync(): Don't use an extra GError
librsvg/rsvg-load.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/librsvg/rsvg-load.c b/librsvg/rsvg-load.c
index a786a403..41dc41ac 100644
--- a/librsvg/rsvg-load.c
+++ b/librsvg/rsvg-load.c
@@ -232,7 +232,6 @@ rsvg_load_read_stream_sync (RsvgLoad *load,
GCancellable *cancellable,
GError **error)
{
- GError *err = NULL;
gboolean res = FALSE;
g_assert (load->xml.ctxt == NULL);
@@ -241,11 +240,7 @@ rsvg_load_read_stream_sync (RsvgLoad *load,
load->unlimited_size,
stream,
cancellable,
- &err);
- if (!res) {
- g_propagate_error (error, err);
- }
-
+ error);
load->state = LOAD_STATE_CLOSED;
return res;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]