mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Don't crash if item is NULL. (#131542, Dan Damian)
Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): Don't crash if item is NULL. (#131542, Dan Damian)
This commit is contained in:
parent
74fd4c9581
commit
8d4f4d5fde
@ -1,3 +1,8 @@
|
|||||||
|
Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
|
||||||
|
Don't crash if item is NULL. (#131542, Dan Damian)
|
||||||
|
|
||||||
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* configure.in: Add a check for a new enough fontconfig, since
|
* configure.in: Add a check for a new enough fontconfig, since
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
|
||||||
|
Don't crash if item is NULL. (#131542, Dan Damian)
|
||||||
|
|
||||||
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* configure.in: Add a check for a new enough fontconfig, since
|
* configure.in: Add a check for a new enough fontconfig, since
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
|
||||||
|
Don't crash if item is NULL. (#131542, Dan Damian)
|
||||||
|
|
||||||
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* configure.in: Add a check for a new enough fontconfig, since
|
* configure.in: Add a check for a new enough fontconfig, since
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
|
||||||
|
Don't crash if item is NULL. (#131542, Dan Damian)
|
||||||
|
|
||||||
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* configure.in: Add a check for a new enough fontconfig, since
|
* configure.in: Add a check for a new enough fontconfig, since
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Feb 22 02:10:34 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func):
|
||||||
|
Don't crash if item is NULL. (#131542, Dan Damian)
|
||||||
|
|
||||||
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
Sun Feb 22 02:04:03 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* configure.in: Add a check for a new enough fontconfig, since
|
* configure.in: Add a check for a new enough fontconfig, since
|
||||||
|
@ -507,15 +507,18 @@ gtk_entry_completion_default_completion_func (GtkEntryCompletion *completion,
|
|||||||
completion->priv->text_column, &item,
|
completion->priv->text_column, &item,
|
||||||
-1);
|
-1);
|
||||||
|
|
||||||
normalized_string = g_utf8_normalize (item, -1, G_NORMALIZE_ALL);
|
if (item != NULL)
|
||||||
case_normalized_string = g_utf8_casefold (normalized_string, -1);
|
{
|
||||||
|
normalized_string = g_utf8_normalize (item, -1, G_NORMALIZE_ALL);
|
||||||
|
case_normalized_string = g_utf8_casefold (normalized_string, -1);
|
||||||
|
|
||||||
if (!strncmp (key, case_normalized_string, strlen (key)))
|
if (!strncmp (key, case_normalized_string, strlen (key)))
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
||||||
g_free (item);
|
g_free (item);
|
||||||
g_free (normalized_string);
|
g_free (normalized_string);
|
||||||
g_free (case_normalized_string);
|
g_free (case_normalized_string);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user