diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2005-01-07 11:14:39 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2005-01-07 11:14:39 (GMT) |
commit | 06b70873479ceb308afe1c721e04477c8af9d1b0 (patch) | |
tree | b4fce5aa52776f53362856c3939f205cc659bae7 /generic | |
parent | b95073a6bf4860b4a160a5f15fd943e7129fa3c7 (diff) | |
download | tk-06b70873479ceb308afe1c721e04477c8af9d1b0.zip tk-06b70873479ceb308afe1c721e04477c8af9d1b0.tar.gz tk-06b70873479ceb308afe1c721e04477c8af9d1b0.tar.bz2 |
Add missing Tcl_ResetResult [697915]
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkWindow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index c71f8a0..d392241 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWindow.c,v 1.65 2004/12/17 14:27:18 chengyemao Exp $ + * RCS: @(#) $Id: tkWindow.c,v 1.66 2005/01/07 11:14:39 dkf Exp $ */ #include "tkPort.h" @@ -479,6 +479,7 @@ GetScreen(interp, screenName, screenPtr) */ dispPtr = TkpOpenDisplay(screenName); if (dispPtr == NULL) { + Tcl_ResetResult(interp); Tcl_AppendResult(interp, "couldn't connect to display \"", screenName, "\"", (char *) NULL); return (TkDisplay *) NULL; |