aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-10-04 18:33:38 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-10-04 18:33:38 -0400
commit64e91d99e8e391b1789f9cc326f21f0c52fd3ac6 (patch)
tree629020a96db82c7a0e77315bf976cb35ccc6cd7e
parentf48b4a533db35c0233cbfbc1a569cde134ecf689 (diff)
downloadstasis-64e91d99e8e391b1789f9cc326f21f0c52fd3ac6.tar.gz
Initialize result
-rw-r--r--src/delivery_install.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/delivery_install.c b/src/delivery_install.c
index a3faae4..ae31cb9 100644
--- a/src/delivery_install.c
+++ b/src/delivery_install.c
@@ -1,9 +1,7 @@
#include "delivery.h"
static struct Test *requirement_from_test(struct Delivery *ctx, const char *name) {
- struct Test *result;
-
- result = NULL;
+ struct Test *result = NULL;
for (size_t i = 0; i < sizeof(ctx->tests) / sizeof(ctx->tests[0]); i++) {
if (ctx->tests[i].name && !strcmp(name, ctx->tests[i].name)) {
result = &ctx->tests[i];