diff --git a/glib/glib-unix.c b/glib/glib-unix.c index 4710c5116..905ecee04 100644 --- a/glib/glib-unix.c +++ b/glib/glib-unix.c @@ -116,8 +116,7 @@ g_unix_open_pipe (int *fds, close (old_fds[0]); close (old_fds[1]); - if (!result) - g_unix_set_error_from_errno (error, errno); + return result; } else if (ecode == 0) return TRUE; @@ -135,9 +134,6 @@ g_unix_open_pipe (int *fds, close (old_fds[0]); close (old_fds[1]); - if (!result) - g_unix_set_error_from_errno (error, errno); - return result; }