dbus/dbus dbus-sysdeps-unix.c,1.25,1.26
Havoc Pennington
hp at kemper.freedesktop.org
Fri Apr 27 10:58:48 PDT 2007
Update of /cvs/dbus/dbus/dbus
In directory kemper:/tmp/cvs-serv29174/dbus
Modified Files:
dbus-sysdeps-unix.c
Log Message:
2007-04-27 Havoc Pennington <hp at redhat.com>
* dbus/dbus-sysdeps-unix.c (_dbus_open_socket): fix #10781 from
Tobias Nygren, checking pointer to fd vs. 0 rather than checking
the fd itself
Index: dbus-sysdeps-unix.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-sysdeps-unix.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- dbus-sysdeps-unix.c 16 Mar 2007 21:56:33 -0000 1.25
+++ dbus-sysdeps-unix.c 27 Apr 2007 17:58:46 -0000 1.26
@@ -76,14 +76,14 @@
#endif
static dbus_bool_t
-_dbus_open_socket (int *fd,
+_dbus_open_socket (int *fd_p,
int domain,
int type,
int protocol,
DBusError *error)
{
- *fd = socket (domain, type, protocol);
- if (fd >= 0)
+ *fd_p = socket (domain, type, protocol);
+ if (*fd_p >= 0)
{
return TRUE;
}
More information about the dbus-commit
mailing list