summaryrefslogtreecommitdiffstats
path: root/generic/tkFont.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2008-12-07 16:34:12 (GMT)
committerdas <das@noemail.net>2008-12-07 16:34:12 (GMT)
commit3ea44fc3d19e4f1f2a97d2c3aa7b7249d7be6895 (patch)
treebc363e25b63d1114e0d291507eb02c7876149aa9 /generic/tkFont.c
parent14269db712062e60897a86aa8963d0ed2add3643 (diff)
downloadtk-3ea44fc3d19e4f1f2a97d2c3aa7b7249d7be6895.zip
tk-3ea44fc3d19e4f1f2a97d2c3aa7b7249d7be6895.tar.gz
tk-3ea44fc3d19e4f1f2a97d2c3aa7b7249d7be6895.tar.bz2
Fix potential use of uninitialized variable flagged by clang static analyzer
FossilOrigin-Name: 01ac8739ab148160b39d604439cdab1f4ebe4b0f
Diffstat (limited to 'generic/tkFont.c')
-rw-r--r--generic/tkFont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c
index 961feac..0b67f56 100644
--- a/generic/tkFont.c
+++ b/generic/tkFont.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkFont.c,v 1.50 2008/11/22 20:05:32 patthoyts Exp $
+ * RCS: @(#) $Id: tkFont.c,v 1.51 2008/12/07 16:34:12 das Exp $
*/
#include "tkInt.h"
@@ -2675,7 +2675,7 @@ Tk_CharBbox(
{
TextLayout *layoutPtr;
LayoutChunk *chunkPtr;
- int i, x, w;
+ int i, x = 0, w;
Tk_Font tkfont;
TkFont *fontPtr;
const char *end;