[anjuta] Fixed crasher in symbol-db plugin when updating Makefile.am offline.



commit b2d15d9a951598ac3df97edc956328b0ebc0e425
Author: Johannes Schmid <jhs gnome org>
Date:   Thu Apr 30 18:13:35 2009 +0200

    Fixed crasher in symbol-db plugin when updating Makefile.am offline.
---
 plugins/symbol-db/plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/symbol-db/plugin.c b/plugins/symbol-db/plugin.c
index fd4378d..105489c 100644
--- a/plugins/symbol-db/plugin.c
+++ b/plugins/symbol-db/plugin.c
@@ -1582,7 +1582,7 @@ do_check_offline_files_changed (SymbolDBPlugin *sdb_plugin)
 				symbol_db_engine_iterator_node_get_symbol_extra_string (dbin,
 													SYMINFO_FILE_PATH);
 			
-			if (g_hash_table_remove (prj_elements_hash, file) == FALSE)
+			if (file && g_hash_table_remove (prj_elements_hash, file) == FALSE)
 			{
 				/* hey, we dind't find an element to remove the the project list.
 				 * So, probably, this is a new file added in offline mode via Makefile.am



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