dbus_connection_open_private ()

Dafydd Harries daf at rhydd.org
Mon Apr 2 13:45:13 PDT 2007


It seems that if you call dbus_connection_open_private with an empty address,
it returns NULL without setting an error. Is this expected behaviour?

Test case:

-----8<-----
#include <assert.h>

#include <dbus/dbus.h>

int
main (void)
{
  DBusConnection *conn;
  DBusError error;

  dbus_error_init (&error);
  conn = dbus_connection_open_private ("", &error);
  assert (conn || error.name);
  return 0;
}
-----8<-----

-- 
Dafydd


More information about the dbus mailing list