Fix error condition in _dbus_pipe_close
authorChristian Dywan <christian@lanedo.com>
Tue, 4 Jan 2011 19:36:43 +0000 (19:36 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 4 Jan 2011 19:37:19 +0000 (19:37 +0000)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32264
Reviewed-by: Colin Walters <walters@verbum.org>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-pipe-unix.c

index f35024b..1a2806e 100644 (file)
@@ -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;
     }