Skip to content
Commit d501bd0d authored by Mario Sanchez Prada's avatar Mario Sanchez Prada Committed by Philip Withnall
Browse files

gdesktopappinfo: Gracefully handle NULL URIs when passed to expand_macro()

If an application calls g_app_info_launch_uris() with a GList that includes
NULL values in some of its data members, and GIO ends up internally calling
g_desktop_app_info_launch_uris_with_spawn() for whatever reason (e.g. no
D-Bus session available), expand_macro() will crash due to the invalid data.

As this is considered a programmer error, use g_return_val_if_fail() in those
situations to prevent the crash from happening, but printing a warning anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=791337
parent fbed9c8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment