DBT search = { &a , sizeof(a) };
DBT reply = { NULL , 0 };
gchar* down_word = NULL;
+ gchar *tmp;
GPatternSpec* regex;
regex = g_pattern_spec_new (g_utf8_casefold(pattern,-1));
if( 0 == g_pattern_match_string( regex, down_word ) )
{
- gchar* cos = g_strdup(search.data);
- g_array_append_val(result, cos );
+ tmp = g_strdup(search.data);
+ g_array_append_val(result, tmp );
};
//eg_free(reply.data);
g_array_free(result, TRUE);
}*/
guint len = 0;
- gchar *tmp;
while(NULL != (tmp = g_array_index(result,gchar*,len++)))
{