diff options
-rw-r--r-- | generic/tkImgBmap.c | 9 | ||||
-rw-r--r-- | generic/tkText.c | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/generic/tkImgBmap.c b/generic/tkImgBmap.c index 093abac..2a06702 100644 --- a/generic/tkImgBmap.c +++ b/generic/tkImgBmap.c @@ -5,11 +5,12 @@ * * Copyright (c) 1994 The Regents of the University of California. * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 1999 by Scriptics Corporation. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkImgBmap.c,v 1.6 1999/04/16 01:51:15 stanton Exp $ + * RCS: @(#) $Id: tkImgBmap.c,v 1.7 1999/04/17 02:35:37 rjohnson Exp $ */ #include "tkInt.h" @@ -630,8 +631,10 @@ TkGetBitmapData(interp, string, fileName, widthPtr, heightPtr, return data; error: - Tcl_SetResult(interp, "format error in bitmap data", TCL_STATIC); - + if (interp != NULL) { + Tcl_SetResult(interp, "format error in bitmap data", TCL_STATIC); + } + errorCleanup: if (data != NULL) { ckfree(data); diff --git a/generic/tkText.c b/generic/tkText.c index 74181a4..ff08140 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -9,11 +9,12 @@ * * Copyright (c) 1992-1994 The Regents of the University of California. * Copyright (c) 1994-1996 Sun Microsystems, Inc. + * Copyright (c) 1999 by Scriptics Corporation. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkText.c,v 1.4 1999/04/17 02:31:20 rjohnson Exp $ + * RCS: @(#) $Id: tkText.c,v 1.5 1999/04/17 02:35:38 rjohnson Exp $ */ #include "default.h" |