Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=11d99560ba47c91c4d23dac7e65ac3f305cdd0de
commit 11d99560ba47c91c4d23dac7e65ac3f305cdd0de Author: Priyank <[email protected]> Date: Tue Mar 10 19:46:53 2009 +0530 Bugfix in fun_config_get_available_browsers() * Fixed a bug that caused this function to return a somewhat emtpy list it firefox was not installed. * Thanks to crazy for noticing this. diff --git a/src/fun-config.c b/src/fun-config.c index dff5411..12c15b6 100644 --- a/src/fun-config.c +++ b/src/fun-config.c @@ -45,12 +45,14 @@ GList* fun_config_get_available_browsers (void) { guint i = 0; + guint j = 0; GList *ret = NULL; while (browserlist[i] != NULL) { - if (g_file_test(browserlist[++i],G_FILE_TEST_EXISTS)) - ret = g_list_append (ret, g_strdup(browserlist[--i])); + j = i+1; + if (g_file_test(browserlist[j],G_FILE_TEST_EXISTS)) + ret = g_list_append (ret, g_strdup(browserlist[i])); i+=2; } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
