diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-04 18:33:38 -0400 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-04 18:33:38 -0400 | 
| commit | 64e91d99e8e391b1789f9cc326f21f0c52fd3ac6 (patch) | |
| tree | 629020a96db82c7a0e77315bf976cb35ccc6cd7e /src | |
| parent | f48b4a533db35c0233cbfbc1a569cde134ecf689 (diff) | |
| download | stasis-64e91d99e8e391b1789f9cc326f21f0c52fd3ac6.tar.gz | |
Initialize result
Diffstat (limited to 'src')
| -rw-r--r-- | src/delivery_install.c | 4 | 
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]; | 
