Ensure widestItem is initialized in setCDKSwindowContents() before use.

Detected by gcc -Wuninitialized.
This commit is contained in:
lukem 2005-06-01 11:51:11 +00:00
parent ac636bd17a
commit 1098edc01a
1 changed files with 5 additions and 3 deletions

8
dist/cdk/swindow.c vendored
View File

@ -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 @@ void setCDKSwindowContents (CDKSWINDOW *swindow, char **info, int lines)
/* Declare local variables. */
int widestItem, x;
widestItem = 0;
/* First lets clean all the lines in the window. */
cleanCDKSwindow(swindow);