[anjuta] bgo#585741 - fix critical warnings on git show diff



commit a914ab0a1bda138c9da57e2b537f77706fc5d5ad
Author: Jens Georg <mail jensge org>
Date:   Sat Aug 1 17:19:53 2009 +0200

    bgo#585741 - fix critical warnings on git show diff

 plugins/file-loader/plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/file-loader/plugin.c b/plugins/file-loader/plugin.c
index 2cfc5ab..9679e5b 100644
--- a/plugins/file-loader/plugin.c
+++ b/plugins/file-loader/plugin.c
@@ -213,7 +213,7 @@ on_value_added_current_doc (AnjutaPlugin *plugin, const gchar *name,
 	g_free (fplugin->dm_current_uri);
 
 	if (IANJUTA_IS_FILE (doc) &&
-	    (file = ianjuta_file_get_file(IANJUTA_FILE (doc), NULL)))
+	    ((file = ianjuta_file_get_file(IANJUTA_FILE (doc), NULL)) != NULL))
 	{
 		GFile* parent = g_file_get_parent (file);
 		fplugin->dm_current_uri = g_file_get_uri (parent);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]