# HG changeset patch # User renatofilho # Date 1193322515 -3600 # Node ID d6e8c7ec5fd85a04bab8112808d92105fd86d5bf # Parent c6c57f6060bd8a1233f9f919fb81bf24570456ed [svn r874] fixed retur of funcion programlist diff -r c6c57f6060bd -r d6e8c7ec5fd8 gmyth/src/gmyth_epg.c --- a/gmyth/src/gmyth_epg.c Thu Oct 25 15:26:21 2007 +0100 +++ b/gmyth/src/gmyth_epg.c Thu Oct 25 15:28:35 2007 +0100 @@ -299,7 +299,7 @@ return -1; } - (*proglist) = NULL; + *proglist = NULL; while ((row = mysql_fetch_row(res_set)) != NULL) { GMythProgramInfo *p = gmyth_program_info_new(); @@ -346,7 +346,7 @@ p->catType = g_string_new(row[18]); - *proglist = g_list_append((*proglist), p); + *proglist = g_list_append(*proglist, p); #ifdef GMYTH_USE_DEBUG gmyth_program_info_print(p); @@ -359,7 +359,7 @@ mysql_free_result(res_set); g_string_free(querystr, TRUE); - return TRUE; + return g_list_length (*proglist); } gboolean