icontheme: Trust the compiler

Just trust the compiler to replace strlen (literal) by the length.
This commit is contained in:
Matthias Clasen 2024-03-22 20:32:32 -04:00
parent b1eed1c153
commit 7a2569be14

View File

@ -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