network: Prevent compile warning
If we build with strict compile check, the pointer alignment gets messed up. So just cast to gpointer to satisfy the compiler. https://bugzilla.gnome.org/show_bug.cgi?id=785581
This commit is contained in:
parent
b64c605e69
commit
331d7fbf11
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ variant_av_to_string_array (GVariant *array)
|
|||
count = g_variant_iter_init (&iter, array);
|
||||
strv = g_ptr_array_sized_new (count + 1);
|
||||
while (g_variant_iter_next (&iter, "v", &v)) {
|
||||
g_ptr_array_add (strv, (gpointer *)g_variant_get_string (v, NULL));
|
||||
g_ptr_array_add (strv, (gpointer)g_variant_get_string (v, NULL));
|
||||
g_variant_unref (v);
|
||||
}
|
||||
g_ptr_array_add (strv, NULL); /* NULL-terminate the strv data array */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue