summaryrefslogtreecommitdiffstats
path: root/generic/tkFont.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-03-03 23:54:10 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-03-03 23:54:10 (GMT)
commite3cc01895622b0949e83b829d84a4cb1fbedce4f (patch)
tree2150e64df587ef3521125c107097d1e3a3d81c9d /generic/tkFont.c
parenta072beb6c3788ba0416b47a505dddd7b73744535 (diff)
downloadtk-e3cc01895622b0949e83b829d84a4cb1fbedce4f.zip
tk-e3cc01895622b0949e83b829d84a4cb1fbedce4f.tar.gz
tk-e3cc01895622b0949e83b829d84a4cb1fbedce4f.tar.bz2
Backported some fixes for uninitialized variables identified by das using clang analysis.
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 f2d2441..e48a0d5 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.42 2007/12/13 15:24:14 dgp Exp $
+ * RCS: @(#) $Id: tkFont.c,v 1.42.2.1 2009/03/03 23:54:11 patthoyts Exp $
*/
#include "tkInt.h"
@@ -2561,7 +2561,7 @@ Tk_CharBbox(
{
TextLayout *layoutPtr;
LayoutChunk *chunkPtr;
- int i, x, w;
+ int i, x = 0, w;
Tk_Font tkfont;
TkFont *fontPtr;
const char *end;