To fix build error: ISO C90 forbids mixed declarations and code

This commit is contained in:
gnucash-dev 2015-03-04 15:25:15 -08:00
parent 39849b8a60
commit b7b8f6f5a7

View File

@ -796,12 +796,14 @@ gnc_query_view_fill (GNCQueryView *qview)
{
gboolean result;
GNCSearchParamSimple *param = node->data;
g_assert (GNC_IS_SEARCH_PARAM_SIMPLE (param));
GSList *converters = gnc_search_param_get_converters (param);
GSList *converters = NULL;
const char *type = gnc_search_param_get_param_type ((GNCSearchParam *) param);
gpointer res = item->data;
gchar *qofstring;
g_assert (GNC_IS_SEARCH_PARAM_SIMPLE (param));
converters = gnc_search_param_get_converters (param);
/* Test for boolean type */
if (g_strcmp0 (type, QOF_TYPE_BOOLEAN) == 0)
{