diff options
author | Luca Bacci <luca.bacci982@gmail.com> | 2023-04-05 13:50:23 +0200 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2023-04-05 15:11:11 +0100 |
commit | 830bcbcf291acb7d624f05f3e8d8cea2f9632df1 (patch) | |
tree | c5c02f8fa51a5f194468f98f8b5347ef521c68f9 | |
parent | a1e169129cfb0a7965c3b8d39d4a0f66ac658f86 (diff) | |
download | glib-830bcbcf291acb7d624f05f3e8d8cea2f9632df1.tar.gz |
GWin32AppInfo: Fix g_str_has_prefix() check
Fixes https://gitlab.gnome.org/GNOME/glib/-/issues/2972
-rw-r--r-- | gio/gwin32appinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c index 543e18f5d..ebb2724a0 100644 --- a/gio/gwin32appinfo.c +++ b/gio/gwin32appinfo.c @@ -4349,7 +4349,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); |