g_variant_new_strv(NULL, -1); warns because NULL is not an array. (NULL, 0) is explicitly accepted though.
Fix: http://cgit.collabora.com/git/user/xclaesse/dbus-glib.git/log/?h=71811
Added a 2nd patch to fix the NULL string case. g_value_set_string() is accepted, but not g_variant_new_string().
(In reply to comment #2) > Added a 2nd patch to fix the NULL string case. g_value_set_string() is > accepted, but not g_variant_new_string(). I mean: g_value_set_string(v, NULL) is accepted, but not g_variant_new_string(NULL).
Looks good. Please commit if you can, or if you can't, I'll merge this next time I do a round of dbus merges.
I can't push myself, please do :)
Fixed in git for 0.102, thanks
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.