[anjuta] symbol-db: fix typo and crasher.
- From: Massimo Cora' <mcora src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] symbol-db: fix typo and crasher.
- Date: Sat, 19 Jun 2010 12:33:18 +0000 (UTC)
commit 692672b64a04df1d8a7ad9a207caf096fe162b2c
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]