gedit r6422 - in trunk: . gedit
- From: jessevdk svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6422 - in trunk: . gedit
- Date: Sun, 17 Aug 2008 18:03:29 +0000 (UTC)
Author: jessevdk
Date: Sun Aug 17 18:03:28 2008
New Revision: 6422
URL: http://svn.gnome.org/viewvc/gedit?rev=6422&view=rev
Log:
* gedit/gedit-document.c: fixed warning with NULL content_type
Modified:
trunk/ChangeLog
trunk/gedit/gedit-document.c
Modified: trunk/gedit/gedit-document.c
==============================================================================
--- trunk/gedit/gedit-document.c (original)
+++ trunk/gedit/gedit-document.c Sun Aug 17 18:03:28 2008
@@ -998,10 +998,12 @@
{
GtkTextIter iter;
const gchar *content_type;
- gchar *mime_type;
+ gchar *mime_type = NULL;
content_type = gedit_document_loader_get_content_type (loader);
- mime_type = g_content_type_get_mime_type (content_type);
+
+ if (content_type)
+ mime_type = g_content_type_get_mime_type (content_type);
doc->priv->mtime = gedit_document_loader_get_mtime (loader);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]