/* get the word passed by dbus */
osso_data = &g_array_index (word, osso_rpc_t, 0);
gchar* tmp = NULL;
- if (( g_utf8_strchr(osso_data->value.s, -1, '*') == NULL ) &&
- ( g_utf8_strchr(osso_data->value.s, -1, '?') == NULL ))
+
+ if (osso_data->value.s != NULL)
{
- tmp = g_strconcat(osso_data->value.s, "*", NULL);
- }
- else
- {
- tmp = g_strdup(osso_data->value.s);
+
+ if (( g_utf8_strchr(osso_data->value.s, -1, '*') == NULL ) &&
+ ( g_utf8_strchr(osso_data->value.s, -1, '?') == NULL ))
+ {
+ tmp = g_strconcat(osso_data->value.s, "*", NULL);
+ }
+ else
+ {
+ tmp = g_strdup(osso_data->value.s);
+ }
}
+
+ else tmp = g_strdup ("*");
/* create and init searching data - separate for each thread */
WSMngSearchAtom* search_data = NULL;