Commit 14fbbf14 authored by Alberto Ruiz's avatar Alberto Ruiz Committed by Matthias Clasen

GtkFontChooser: check if font name is NULL in gtk_font_selection_set_font_name

parent ea4603e5
......@@ -1535,6 +1535,7 @@ gtk_font_selection_set_font_name (GtkFontSelection *fontsel,
gboolean found = FALSE;
g_return_val_if_fail (GTK_IS_FONT_SELECTION (fontsel), FALSE);
g_return_val_if_fail (fontname != NULL, FALSE);
if (!gtk_widget_has_screen (GTK_WIDGET (fontsel)))
return FALSE;
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