Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/cdk Ensure widestItem is initialized in setCDKSwindowCo...



details:   https://anonhg.NetBSD.org/src/rev/e79bd908e430
branches:  trunk
changeset: 581393:e79bd908e430
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 01 11:51:11 2005 +0000

description:
Ensure widestItem is initialized in setCDKSwindowContents() before use.
Detected by gcc -Wuninitialized.

diffstat:

 dist/cdk/swindow.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r eb0794b3f260 -r e79bd908e430 dist/cdk/swindow.c
--- a/dist/cdk/swindow.c        Wed Jun 01 11:37:52 2005 +0000
+++ b/dist/cdk/swindow.c        Wed Jun 01 11:51:11 2005 +0000
@@ -1,9 +1,9 @@
 #include <cdk.h>
 
 /*
- * $Author: garbled $
- * $Date: 2001/01/09 18:41:54 $
- * $Revision: 1.3 $
+ * $Author: lukem $
+ * $Date: 2005/06/01 11:51:11 $
+ * $Revision: 1.4 $
  */
 
 /*
@@ -183,6 +183,8 @@
    /* Declare local variables. */
    int widestItem, x;
 
+   widestItem = 0;
+
    /* First lets clean all the lines in the window. */
    cleanCDKSwindow(swindow);
 



Home | Main Index | Thread Index | Old Index