diff options
author | Michael Natterer <mitch@imendio.com> | 2009-01-22 15:15:40 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2009-01-22 15:15:40 +0000 |
commit | 374fa4bb4a4657008ee3122b5d46737137a5c734 (patch) | |
tree | b32f02026e487ae8815c0a9dff4f7c0f1f981e9d /gtk | |
parent | 6cceccd860b27d7f46140de5e2cd3a015745ecdd (diff) | |
download | gtk+-374fa4bb4a4657008ee3122b5d46737137a5c734.tar.gz |
g_return_if_fail() on icon_name != NULL so we get a warning instead of a
2009-01-22 Michael Natterer <mitch@imendio.com>
* gtk/gtkicontheme.c (gtk_icon_theme_has_icon): g_return_if_fail()
on icon_name != NULL so we get a warning instead of a crash here.
svn path=/trunk/; revision=22174
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkicontheme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 5fc1b3b20b..6df05ef80e 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -1571,7 +1571,8 @@ gtk_icon_theme_has_icon (GtkIconTheme *icon_theme, GList *l; g_return_val_if_fail (GTK_IS_ICON_THEME (icon_theme), FALSE); - + g_return_val_if_fail (icon_name != NULL, FALSE); + priv = icon_theme->priv; ensure_valid_themes (icon_theme); |