Fix bug #29: analyse_quotes() shadows the linecnt global variable for no good reason
authorali <ali@juiblex.co.uk>
Tue Oct 15 07:57:45 2013 +0100 (2013-10-15)
changeset 9837da646396b9
parent 97 c45fa3843618
child 99 783eff3047bc
Fix bug #29: analyse_quotes() shadows the linecnt global variable for no good reason
bookloupe/bookloupe.c
     1.1 --- a/bookloupe/bookloupe.c	Thu Oct 03 16:09:39 2013 +0100
     1.2 +++ b/bookloupe/bookloupe.c	Tue Oct 15 07:57:45 2013 +0100
     1.3 @@ -825,7 +825,7 @@
     1.4   *
     1.5   * Returns: TRUE if the line is empty.
     1.6   */
     1.7 -gboolean analyse_quotes(const char *aline,int linecnt,struct counters *counters)
     1.8 +gboolean analyse_quotes(const char *aline,struct counters *counters)
     1.9  {
    1.10      int guessquote=0;
    1.11      /* assume the line is empty until proven otherwise */
    1.12 @@ -2647,7 +2647,7 @@
    1.13  	}
    1.14  	checked_linecnt++;
    1.15  	print_pending(aline,parastart,&pending);
    1.16 -	isemptyline=analyse_quotes(aline,linecnt,&counters);
    1.17 +	isemptyline=analyse_quotes(aline,&counters);
    1.18  	if (isnewpara && !isemptyline)
    1.19  	{
    1.20  	    /* This line is the start of a new paragraph. */