mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 02:36:19 +01:00
Merge branch 'fix-issue-2972' into 'main'
GWin32AppInfo: Fix g_str_has_prefix() check Closes #2972 See merge request GNOME/glib!3359
This commit is contained in:
commit
a6f31f3ede
@ -4357,7 +4357,7 @@ expand_macro_single (char macro, file_or_uri *obj)
|
||||
const char *prefix = "file:///";
|
||||
const size_t prefix_len = strlen (prefix);
|
||||
|
||||
if (g_str_has_prefix (obj->uri, prefix) == 0 && obj->uri[prefix_len] != 0)
|
||||
if (g_str_has_prefix (obj->uri, prefix) && obj->uri[prefix_len] != 0)
|
||||
{
|
||||
GFile *file = g_file_new_for_uri (obj->uri);
|
||||
result = g_file_get_path (file);
|
||||
|
Loading…
Reference in New Issue
Block a user