# HG changeset patch # User melunko # Date 1178204874 -3600 # Node ID 73df1c7e30ecd0dede5c20edfee02585e70cb336 # Parent 9df91aff54792e1a15fbbb1411eebcbc6aeaa3db [svn r633] Fixed gmyth_epg_disconnect() function diff -r 9df91aff5479 -r 73df1c7e30ec gmyth/src/gmyth_epg.c --- a/gmyth/src/gmyth_epg.c Thu May 03 16:07:36 2007 +0100 +++ b/gmyth/src/gmyth_epg.c Thu May 03 16:07:54 2007 +0100 @@ -136,7 +136,7 @@ g_return_val_if_fail (gmyth_epg != NULL, FALSE); if (gmyth_epg->sqlquery != NULL) { - gmyth_query_disconnect (gmyth_epg); + gmyth_query_disconnect (gmyth_epg->sqlquery); g_object_unref (gmyth_epg->sqlquery); gmyth_epg->sqlquery = NULL; } @@ -199,7 +199,7 @@ MYSQL_RES *msql_res; gchar* query_str; - g_return_val_if_fail (gmyth_epg != NULL, -1); + g_return_val_if_fail (gmyth_epg != NULL, NULL); query_str = g_strdup_printf ("SELECT channum, name, icon FROM channel WHERE chanid=%d;", channel_id); msql_res = gmyth_query_process_statement (gmyth_epg->sqlquery, query_str);