Commit 9a8a6227 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

accept a NULL name and return NULL. Fixes warnings when starting gimp w/o

2002-11-18  Sven Neumann  <sven@gimp.org>

	* app/core/gimpcontainer.c (gimp_container_get_child_by_name):
	accept a NULL name and return NULL. Fixes warnings when starting
	gimp w/o a gimprc.
parent 5749d04f
2002-11-18 Sven Neumann <sven@gimp.org>
* app/core/gimpcontainer.c (gimp_container_get_child_by_name):
accept a NULL name and return NULL. Fixes warnings when starting
gimp w/o a gimprc.
2002-11-18 Michael Natterer <mitch@gimp.org>
 
* app/widgets/gimpcursor.c: removed commented out and unused
......
......@@ -852,7 +852,9 @@ gimp_container_get_child_by_name (const GimpContainer *container,
const gchar *name)
{
g_return_val_if_fail (GIMP_IS_CONTAINER (container), NULL);
g_return_val_if_fail (name != NULL, NULL);
if (!name)
return NULL;
return GIMP_CONTAINER_GET_CLASS (container)->get_child_by_name (container,
name);
......
Supports Markdown
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