summaryrefslogtreecommitdiffstats
path: root/generic/tclClockFmt.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-04-13 22:16:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-04-13 22:16:52 (GMT)
commit2b0fe4a3ef75940978059b4b33672f2d1c63dced (patch)
tree4d6908ac453dc6ccba9b0a0593e77af3511609c6 /generic/tclClockFmt.c
parentd46e9784ab0ff5b3e9bf35dc56c903fd9503c936 (diff)
downloadtcl-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.c5
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));