I am trying to send some arrays across DBUS with glib bindings and get an error and segfault when I send empty string array. I believe it should gracefully handle this case. It does seem to handle empty GArrays, but not string arrays.
<br><br>I send the following:<br>'as' array of string glib bindings show this as a char** so I am assuming I need to null terminate this array<br>char** arraystrings = malloc(sizeof(char*) * (sizeofarray +1) )<br>arraystrings[sizeofarray] = NULL;
<br><br><br>If I do this with empty arrays (sizeofarray = 0). My server process answering the dbus request segfaults with the following error<br><br>27088: arguments to dbus_message_iter_get_fixed_array() were incorrect, assertion "dbus_type_is_fixed (_dbus_type_reader_get_current_type (&real->
u.reader))" failed in file dbus-message.c line 1741.<br><br>If I change the code to give it one element it works great. But it always fails with zero. <br><br><br>Keith<br><br>