Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=f7e523ad0aafd02b433184db93c84a23ae76baab
commit f7e523ad0aafd02b433184db93c84a23ae76baab Author: Priyank <[email protected]> Date: Wed Mar 11 01:10:16 2009 +0530 Fix a statement with no effect diff --git a/src/fund.c b/src/fund.c index e55df2b..6ce07f5 100644 --- a/src/fund.c +++ b/src/fund.c @@ -200,9 +200,11 @@ gboolean fund_update_database(FWUpdateNotifier *obj, gchar **packages, GError ** } else { GString *tmp = g_string_new (""); - for (list; list!=NULL;list=g_list_next(list)) { + while (list!=NULL) + { tmp = g_string_append (tmp, list->data); tmp = g_string_append (tmp, " "); + list = g_list_next (list); } if (packages != NULL) *packages = g_strdup (tmp->str); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
