[Frugalware-git] fun: Fix a statement with no effect

Priyank priyank at frugalware.org
Tue Mar 10 20:40:29 CET 2009


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=f7e523ad0aafd02b433184db93c84a23ae76baab

commit f7e523ad0aafd02b433184db93c84a23ae76baab
Author: Priyank <priyank at frugalware.org>
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);


More information about the Frugalware-git mailing list