Correctly initialize DBus connection slot for managing DBus signals.

[GB.DBUS]
* BUG: Correctly initialize DBus connection slot for managing DBus signals.
This commit is contained in:
gambas 2017-08-30 21:55:53 +02:00
parent 06809b9426
commit 4d9579f217

View file

@ -1276,7 +1276,7 @@ bool DBUS_watch(DBusConnection *connection, bool on)
{ {
intptr_t count; intptr_t count;
int socket; int socket;
static dbus_int32_t slot; static dbus_int32_t slot = -1;
if (!dbus_connection_allocate_data_slot(&slot)) if (!dbus_connection_allocate_data_slot(&slot))
{ {