Commit 9c28c229 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

return early if gimp_config_path_expand_only() fails.

2004-01-28  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-path.c (gimp_config_path_expand): return
	early if gimp_config_path_expand_only() fails.
parent 87e1ea55
2004-01-28 Michael Natterer <mitch@gimp.org>
* app/config/gimpconfig-path.c (gimp_config_path_expand): return
early if gimp_config_path_expand_only() fails.
2004-01-28 Dave Neary <bolsh@gimp.org>
 
* plug-ins/common/tiff.c: Removed duplicate TIFF entry from save
......@@ -69,16 +69,17 @@ gimp_config_path_expand (const gchar *path,
gchar *retval;
gchar *expanded = gimp_config_path_expand_only (path, error);
if (! expanded)
return NULL;
retval = g_filename_from_utf8 (expanded, -1, NULL, NULL, error);
g_free (expanded);
return retval;
}
else
{
return gimp_config_path_expand_only (path, error);
}
return gimp_config_path_expand_only (path, error);
}
static gchar *
......
......@@ -69,16 +69,17 @@ gimp_config_path_expand (const gchar *path,
gchar *retval;
gchar *expanded = gimp_config_path_expand_only (path, error);
if (! expanded)
return NULL;
retval = g_filename_from_utf8 (expanded, -1, NULL, NULL, error);
g_free (expanded);
return retval;
}
else
{
return gimp_config_path_expand_only (path, error);
}
return gimp_config_path_expand_only (path, error);
}
static gchar *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment