Commit 5259a1f1 authored by Paolo Borelli's avatar Paolo Borelli

also check here

svn path=/trunk/; revision=5963
parent 3a862dce
2007-10-11 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-language-manager.c: check ids array for nullness.
* gedit/gedit-file-chooser-dialog.c:
* gedit/gedit-language-manager.c:
check language ids array for nullness.
2007-10-09 Curtis Hovey <sinzui.is@verizon.net>
......
......@@ -168,7 +168,7 @@ all_text_files_filter (const GtkFileFilterInfo *filter_info,
lm = gedit_get_language_manager ();
languages = gtk_source_language_manager_get_language_ids (lm);
while (*languages != NULL)
while ((languages != NULL) && (*languages != NULL))
{
gchar **mime_types;
gint i;
......
......@@ -158,6 +158,8 @@ gedit_language_manager_get_language_from_mime_type (GtkSourceLanguageManager *lm
"Cache miss for %s", mime_type);
languages = gtk_source_language_manager_get_language_ids (lm);
if (languages == NULL)
return NULL;
while (*languages != NULL)
{
......
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