summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-26 12:51:45 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-26 12:51:45 (GMT)
commit36091348f8af6507a2beef8d03568d26b45bd2c8 (patch)
tree2dd2e21bf44d809b6fd36275221105792bc5222c /generic/tkTextDisp.c
parent64f88bf202a2b4e4f40c170be5faa31f030edd50 (diff)
downloadtk-36091348f8af6507a2beef8d03568d26b45bd2c8.zip
tk-36091348f8af6507a2beef8d03568d26b45bd2c8.tar.gz
tk-36091348f8af6507a2beef8d03568d26b45bd2c8.tar.bz2
Stop compiler warning
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 2 insertions, 1 deletions
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;