From 36091348f8af6507a2beef8d03568d26b45bd2c8 Mon Sep 17 00:00:00 2001 From: dkf Date: Tue, 26 Oct 2004 12:51:45 +0000 Subject: Stop compiler warning --- generic/tkTextDisp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 63b8da6..3248d04 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkTextDisp.c,v 1.44 2004/09/10 12:13:41 vincentdarley Exp $ + * RCS: @(#) $Id: tkTextDisp.c,v 1.45 2004/10/26 12:51:45 dkf Exp $ */ #include "tkPort.h" @@ -1782,6 +1782,7 @@ UpdateDisplayInfo(textPtr) * peer widget. */ lineNum = -1; + bytesToCount = 0; /* Stop compiler warning */ } else { lineNum = TkBTreeLinesTo(textPtr, dInfoPtr->dLinePtr->index.linePtr); bytesToCount = dInfoPtr->dLinePtr->index.byteIndex; -- cgit v0.12