From 11b71e901c39d9399005d2ee626063e34416f15e Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 4 Jan 2011 19:36:43 +0000 Subject: [PATCH] Fix error condition in _dbus_pipe_close Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32264 Reviewed-by: Colin Walters Reviewed-by: Simon McVittie --- dbus/dbus-pipe-unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-pipe-unix.c b/dbus/dbus-pipe-unix.c index f35024b59..1a2806e2a 100644 --- a/dbus/dbus-pipe-unix.c +++ b/dbus/dbus-pipe-unix.c @@ -65,13 +65,13 @@ _dbus_pipe_write (DBusPipe *pipe, * * @param pipe the pipe instance * @param error return location for an error - * @returns #FALSE if error is set + * @returns -1 if error is set */ int _dbus_pipe_close (DBusPipe *pipe, DBusError *error) { - if (_dbus_close (pipe->fd_or_handle, error) < 0) + if (!_dbus_close (pipe->fd_or_handle, error)) { return -1; } -- 2.47.3