+Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/giochannel.c (g_io_error_get_from_g_error): Put
+ the g_return_val_if_fail() in the right place.
+
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
* glib/giochannel.c (g_io_channel_error_from_errno):
+Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/giochannel.c (g_io_error_get_from_g_error): Put
+ the g_return_val_if_fail() in the right place.
+
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
* glib/giochannel.c (g_io_channel_error_from_errno):
+Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/giochannel.c (g_io_error_get_from_g_error): Put
+ the g_return_val_if_fail() in the right place.
+
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
* glib/giochannel.c (g_io_channel_error_from_errno):
+Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/giochannel.c (g_io_error_get_from_g_error): Put
+ the g_return_val_if_fail() in the right place.
+
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
* glib/giochannel.c (g_io_channel_error_from_errno):
+Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/giochannel.c (g_io_error_get_from_g_error): Put
+ the g_return_val_if_fail() in the right place.
+
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
* glib/giochannel.c (g_io_channel_error_from_errno):
+Sun Jun 1 09:42:36 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/giochannel.c (g_io_error_get_from_g_error): Put
+ the g_return_val_if_fail() in the right place.
+
Fri May 31 1:17:45 2003 Ray Strode <halfline@hawaii.rr.com>
* glib/giochannel.c (g_io_channel_error_from_errno):
g_io_error_get_from_g_error (GIOStatus status,
GError *err)
{
- g_return_val_if_fail (err != NULL, G_IO_ERROR_UNKNOWN);
-
switch (status)
{
case G_IO_STATUS_NORMAL:
case G_IO_STATUS_AGAIN:
return G_IO_ERROR_AGAIN;
case G_IO_STATUS_ERROR:
+ g_return_val_if_fail (err != NULL, G_IO_ERROR_UNKNOWN);
+
if (err->domain != G_IO_CHANNEL_ERROR)
return G_IO_ERROR_UNKNOWN;
switch (err->code)