diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-04-13 22:16:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-04-13 22:16:52 (GMT) |
commit | 2b0fe4a3ef75940978059b4b33672f2d1c63dced (patch) | |
tree | 4d6908ac453dc6ccba9b0a0593e77af3511609c6 /generic/tclClockFmt.c | |
parent | d46e9784ab0ff5b3e9bf35dc56c903fd9503c936 (diff) | |
download | tcl-core-attemptcreatehashentry.zip tcl-core-attemptcreatehashentry.tar.gz tcl-core-attemptcreatehashentry.tar.bz2 |
Implement Tcl_AttemptCreateHashEntry()core-attemptcreatehashentry
Diffstat (limited to 'generic/tclClockFmt.c')
-rw-r--r-- | generic/tclClockFmt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclClockFmt.c b/generic/tclClockFmt.c index 358c4f0..beec218 100644 --- a/generic/tclClockFmt.c +++ b/generic/tclClockFmt.c @@ -565,7 +565,10 @@ ClockFmtScnStorageAllocProc( allocsize -= sizeof(hPtr->key); } - fss = (ClockFmtScnStorage *)Tcl_Alloc(allocsize); + fss = (ClockFmtScnStorage *)Tcl_AttemptAlloc(allocsize); + if (!fss) { + return NULL; + } /* initialize */ memset(fss, 0, sizeof(*fss)); |