mirror of https://github.com/GNOME/gimp.git
app: Support NULL ext to file_utils_uri_with_new_ext()
This commit is contained in:
parent
e4976d8ad2
commit
d9136aec3f
|
@ -238,7 +238,7 @@ file_utils_uri_with_new_ext (const gchar *uri,
|
|||
const gchar *ext_uri)
|
||||
{
|
||||
const gchar *uri_ext = file_utils_get_ext_start (uri);
|
||||
const gchar *ext_uri_ext = file_utils_get_ext_start (ext_uri);
|
||||
const gchar *ext_uri_ext = ext_uri ? file_utils_get_ext_start (ext_uri) : NULL;
|
||||
gchar *uri_without_ext = g_strndup (uri, uri_ext - uri);
|
||||
gchar *ret = g_strconcat (uri_without_ext, ext_uri_ext, NULL);
|
||||
g_free (uri_without_ext);
|
||||
|
|
Loading…
Reference in New Issue