mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Merge branch 'fix-issue-2922' into 'main'
GWin32AppInfo: Add NULL string checks Closes #2922 See merge request GNOME/glib!3317
This commit is contained in:
commit
618c340726
@ -3100,6 +3100,9 @@ link_handlers_to_unregistered_apps (void)
|
|||||||
if (handler_verb->app != NULL)
|
if (handler_verb->app != NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (handler_verb->executable_folded == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
handler_exe_basename = g_utf8_find_basename (handler_verb->executable_folded, -1);
|
handler_exe_basename = g_utf8_find_basename (handler_verb->executable_folded, -1);
|
||||||
g_hash_table_iter_init (&app_iter, apps_by_id);
|
g_hash_table_iter_init (&app_iter, apps_by_id);
|
||||||
|
|
||||||
@ -3119,6 +3122,9 @@ link_handlers_to_unregistered_apps (void)
|
|||||||
const gchar *app_exe_basename;
|
const gchar *app_exe_basename;
|
||||||
app_verb = _verb_idx (app->verbs, ai);
|
app_verb = _verb_idx (app->verbs, ai);
|
||||||
|
|
||||||
|
if (app_verb->executable_folded == NULL)
|
||||||
|
continue;
|
||||||
|
|
||||||
app_exe_basename = g_utf8_find_basename (app_verb->executable_folded, -1);
|
app_exe_basename = g_utf8_find_basename (app_verb->executable_folded, -1);
|
||||||
|
|
||||||
/* First check that the executable paths are identical */
|
/* First check that the executable paths are identical */
|
||||||
|
Loading…
Reference in New Issue
Block a user