mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 12:20:08 +00:00
icontheme: Trust the compiler
Just trust the compiler to replace strlen (literal) by the length.
This commit is contained in:
parent
b1eed1c153
commit
7a2569be14
@ -4004,7 +4004,7 @@ gtk_icon_paintable_new_for_file (GFile *file,
|
||||
char *uri;
|
||||
|
||||
uri = g_file_get_uri (file);
|
||||
icon->filename = g_strdup (uri + 11); /* resource:// */
|
||||
icon->filename = g_strdup (uri + strlen ("resource://"));
|
||||
g_free (uri);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user