mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 02:58:01 +02:00
2007-04-27 Havoc Pennington <hp@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
This commit is contained in:
parent
4bd8418548
commit
c85da03580
2 changed files with 9 additions and 3 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2007-04-27 Havoc Pennington <hp@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
|
||||
|
||||
2007-04-26 Ralf.Habacker <ralf.habacker@freenet.de>
|
||||
|
||||
* cmake: added debug postfixes to debug exe's for
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue