# HG changeset patch # User ali # Date 1381820265 -3600 # Node ID 37da646396b98688519d402293acf70d6a6aa300 # Parent c45fa3843618a62325745fd3661fd667cff3803d Fix bug #29: analyse_quotes() shadows the linecnt global variable for no good reason diff -r c45fa3843618 -r 37da646396b9 bookloupe/bookloupe.c --- a/bookloupe/bookloupe.c Thu Oct 03 16:09:39 2013 +0100 +++ b/bookloupe/bookloupe.c Tue Oct 15 07:57:45 2013 +0100 @@ -825,7 +825,7 @@ * * Returns: TRUE if the line is empty. */ -gboolean analyse_quotes(const char *aline,int linecnt,struct counters *counters) +gboolean analyse_quotes(const char *aline,struct counters *counters) { int guessquote=0; /* assume the line is empty until proven otherwise */ @@ -2647,7 +2647,7 @@ } checked_linecnt++; print_pending(aline,parastart,&pending); - isemptyline=analyse_quotes(aline,linecnt,&counters); + isemptyline=analyse_quotes(aline,&counters); if (isnewpara && !isemptyline) { /* This line is the start of a new paragraph. */