diff options
author | hobbs <hobbs> | 2000-04-08 06:59:19 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-04-08 06:59:19 (GMT) |
commit | 477cd1d5477c6487a7fde0d13710449e23b7d8e5 (patch) | |
tree | 0b8c3e4c6777b43340ce1c0c09736a62cd97a83f /generic/tkGrid.c | |
parent | 8961196a00e44f0bb7118ecdc25d15b9d5fa98b1 (diff) | |
download | tk-477cd1d5477c6487a7fde0d13710449e23b7d8e5.zip tk-477cd1d5477c6487a7fde0d13710449e23b7d8e5.tar.gz tk-477cd1d5477c6487a7fde0d13710449e23b7d8e5.tar.bz2 |
* generic/tkGrid.c (InitMasterData): fixed uninit'd data in
GridMaster struct [Bug: 4387]
Diffstat (limited to 'generic/tkGrid.c')
-rw-r--r-- | generic/tkGrid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkGrid.c b/generic/tkGrid.c index 5b4f9b8..6f84fc9 100644 --- a/generic/tkGrid.c +++ b/generic/tkGrid.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkGrid.c,v 1.7 2000/01/20 23:46:20 ericm Exp $ + * RCS: @(#) $Id: tkGrid.c,v 1.8 2000/04/08 06:59:19 hobbs Exp $ */ #include "tkInt.h" @@ -1931,13 +1931,13 @@ InitMasterData(masterPtr) gridPtr->columnEnd = 0; gridPtr->columnMax = 0; gridPtr->columnPtr = (SlotInfo *) ckalloc(size); - gridPtr->columnSpace = 0; gridPtr->columnSpace = TYPICAL_SIZE; gridPtr->rowEnd = 0; gridPtr->rowMax = 0; gridPtr->rowPtr = (SlotInfo *) ckalloc(size); - gridPtr->rowSpace = 0; gridPtr->rowSpace = TYPICAL_SIZE; + gridPtr->startX = 0; + gridPtr->startY = 0; memset((VOID *) gridPtr->columnPtr, 0, size); memset((VOID *) gridPtr->rowPtr, 0, size); |