diff options
author | ericm <ericm> | 2000-07-06 06:38:08 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-07-06 06:38:08 (GMT) |
commit | 7f4db5c028c604a10b81401d983b383f65e2de83 (patch) | |
tree | afa324f6aed427e947faa428bd4ef9f54d7d7960 /generic | |
parent | 8ea696f3623c8f3df9b570f448c1fefedf4ff750 (diff) | |
download | tk-7f4db5c028c604a10b81401d983b383f65e2de83.zip tk-7f4db5c028c604a10b81401d983b383f65e2de83.tar.gz tk-7f4db5c028c604a10b81401d983b383f65e2de83.tar.bz2 |
Applied patch from Nijtmans/Howlett to intialize nextPtr field of TkCursor
structure when it is created, to prevent possible core dumps.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkCursor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkCursor.c b/generic/tkCursor.c index eab40e8..6bbbbf6 100644 --- a/generic/tkCursor.c +++ b/generic/tkCursor.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCursor.c,v 1.5 2000/05/11 22:37:06 hobbs Exp $ + * RCS: @(#) $Id: tkCursor.c,v 1.6 2000/07/06 06:38:09 ericm Exp $ */ #include "tkPort.h" @@ -276,6 +276,7 @@ GetCursor(interp, tkwin, string) cursorPtr->objRefCount = 0; cursorPtr->otherTable = &dispPtr->cursorNameTable; cursorPtr->hashPtr = nameHashPtr; + cursorPtr->nextPtr = NULL; cursorPtr->idHashPtr = Tcl_CreateHashEntry(&dispPtr->cursorIdTable, (char *) cursorPtr->cursor, &new); if (!new) { |