summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index f5ba669..da80876 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -33,7 +33,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclStringObj.c,v 1.80 2009/02/02 05:47:54 dgp Exp $ */
+ * RCS: @(#) $Id: tclStringObj.c,v 1.81 2009/02/02 05:54:53 dgp Exp $ */
#include "tclInt.h"
#include "tommath.h"
@@ -110,7 +110,8 @@ typedef struct String {
#define STRING_SIZE(numBytes) \
(sizeof(String) - sizeof(Tcl_UniChar) + (numBytes))
#define STRING_NOMEM(numBytes) \
- (Tcl_Panic("unable to alloc %u bytes", STRING_SIZE(numBytes)), NULL)
+ (Tcl_Panic("unable to alloc %u bytes", STRING_SIZE(numBytes)), \
+ (char *) NULL)
#define stringAlloc(numBytes) \
(String *) (((numBytes) > INT_MAX - STRING_SIZE(0)) \
? STRING_NOMEM(numBytes) \