[anjuta/sdb-core-trans: 69/70] symbol-db: fix typo and crasher.



commit 8b2b3cf53316d7477fa3eea430b22b8cd30ac1e5
Author: Massimo Corà <mcora src gnome org>
Date:   Sat Jun 19 14:30:44 2010 +0200

    symbol-db: fix typo and crasher.

 plugins/symbol-db/symbol-db-query-result.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-query-result.c b/plugins/symbol-db/symbol-db-query-result.c
index 9d0b129..2e42cf1 100644
--- a/plugins/symbol-db/symbol-db-query-result.c
+++ b/plugins/symbol-db/symbol-db-query-result.c
@@ -290,7 +290,7 @@ isymbol_get_boolean (IAnjutaSymbol *isymbol, IAnjutaSymbolField field,
 	return g_value_get_boolean (val);
 }
 
-static gboolean
+static gint
 isymbol_get_int (IAnjutaSymbol *isymbol, IAnjutaSymbolField field,
                  GError **err)
 {
@@ -305,7 +305,7 @@ isymbol_get_int (IAnjutaSymbol *isymbol, IAnjutaSymbolField field,
 
 	col = result->priv->col_map[field];
 	val = gda_data_model_iter_get_value_at (result->priv->iter, col);
-	if (!val) return 0;
+	if (!val || !G_VALUE_HOLDS_STRING(val)) return 0;
 	if (field == IANJUTA_SYMBOL_FIELD_TYPE)
 	{
 		const gchar* type_str = g_value_get_string (val);



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