summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authordas <das>2009-06-30 00:56:29 (GMT)
committerdas <das>2009-06-30 00:56:29 (GMT)
commit1bc826ea6368b845b99e8ac3289521e623239e90 (patch)
tree486c789f1ba88a841ef3162ce8911a86ac67a5ff /generic/tkTextDisp.c
parent809b381e2db8d3243e35cd569e40d2cccb781e20 (diff)
downloadtk-1bc826ea6368b845b99e8ac3289521e623239e90.zip
tk-1bc826ea6368b845b99e8ac3289521e623239e90.tar.gz
tk-1bc826ea6368b845b99e8ac3289521e623239e90.tar.bz2
* generic/tkInt.h: add assert macros for clang static
analyzer and redefine Tcl_Panic to assert after panic in clang PURIFY builds. * generic/tkImgPhInstance.c: small fixes to make clang static * generic/tkTextDisp.c: analyzer happier. * generic/tkConfig.c: add clang assert for false positives * generic/tkUndo.c: from static analyzer.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 4d20b50..164fc5d 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -12,7 +12,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.72 2008/12/09 21:22:56 dgp Exp $
+ * RCS: @(#) $Id: tkTextDisp.c,v 1.73 2009/06/30 00:56:29 das Exp $
*/
#include "tkInt.h"
@@ -6721,10 +6721,10 @@ DlineXOfIndex(
* coordinate. */
{
register TkTextDispChunk *chunkPtr = dlPtr->chunkPtr;
- int x;
+ int x = 0;
if (byteIndex == 0 || chunkPtr == NULL) {
- return 0;
+ return x;
}
/*