aboutsummaryrefslogtreecommitdiff
path: root/src/lib/core
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-06 14:09:40 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-08 10:22:37 -0400
commit80215ce93b7e6110d14e82ac8e221573ad435657 (patch)
treed2fef0532e833eb507ed0dd68361f2510e3eb9d1 /src/lib/core
parent49817bfe53676cfe33bcfd21741332cbfc1ae02a (diff)
downloadstasis-80215ce93b7e6110d14e82ac8e221573ad435657.tar.gz
Convert from stack to heap based test allocation
Diffstat (limited to 'src/lib/core')
-rw-r--r--src/lib/core/template_func_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/core/template_func_proto.c b/src/lib/core/template_func_proto.c
index 3e1cd99..52a11b5 100644
--- a/src/lib/core/template_func_proto.c
+++ b/src/lib/core/template_func_proto.c
@@ -28,9 +28,9 @@ int get_github_release_notes_auto_tplfunc_entrypoint(void *frame, void *data_out
const struct Delivery *ctx = (struct Delivery *) f->data_in;
struct StrList *notes_list = strlist_init();
- for (size_t i = 0; i < sizeof(ctx->tests) / sizeof(*ctx->tests); i++) {
+ for (size_t i = 0; i < ctx->tests->num_used; i++) {
// Get test context
- const struct Test *test = &ctx->tests[i];
+ const struct Test *test = ctx->tests->test[i];
if (test->name && test->version && test->repository) {
char *repository = strdup(test->repository);
char *match = strstr(repository, "spacetelescope/");