[Pkg-telepathy-commits] [libnice] 110/265: outputstream: Put GError in the right GError**

Simon McVittie smcv at debian.org
Wed May 14 12:04:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit dcab7310e95981cb1aae37b8fe87ee04afac162c
Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Thu Jan 30 21:42:26 2014 -0500

    outputstream: Put GError in the right GError**
---
 agent/outputstream.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/agent/outputstream.c b/agent/outputstream.c
index b2a472c..ba2be0b 100644
--- a/agent/outputstream.c
+++ b/agent/outputstream.c
@@ -356,7 +356,7 @@ nice_output_stream_write (GOutputStream *stream, const void *buffer, gsize count
 
   /* Closed streams are not writeable. */
   if (g_output_stream_is_closed (stream)) {
-    g_set_error_literal (&child_error, G_IO_ERROR, G_IO_ERROR_CLOSED,
+    g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_CLOSED,
         "Stream is closed.");
     return -1;
   }
@@ -364,7 +364,7 @@ nice_output_stream_write (GOutputStream *stream, const void *buffer, gsize count
   /* Has the agent disappeared? */
   agent = g_weak_ref_get (&self->priv->agent_ref);
   if (agent == NULL) {
-    g_set_error_literal (&child_error, G_IO_ERROR, G_IO_ERROR_CLOSED,
+    g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_CLOSED,
         "Stream is closed due to the NiceAgent being finalised.");
     return -1;
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list