about summary refs log tree commit diff stats
path: root/src/HTInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTInit.c')
-rw-r--r--src/HTInit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HTInit.c b/src/HTInit.c
index e9a963b0..c4319235 100644
--- a/src/HTInit.c
+++ b/src/HTInit.c
@@ -504,6 +504,8 @@ PRIVATE int RememberTestResult ARGS3(
 	    return -1;
 	case RTR_add:
 	    cur = calloc(1, sizeof(struct cmdlist_s));
+	    if (cur == NULL)
+		outofmem(__FILE__, "RememberTestResult");
 	    cur->next = cmdlist;
 	    cur->cmd = (char *)malloc(strlen(cmd) + 1);
 	    if(cur->cmd)