fw: Check NULL pointer in main.c

This commit is contained in:
Mikael Ågren 2025-04-10 12:48:46 +02:00
parent bc8efe03e7
commit 65e67b604d
No known key found for this signature in database
GPG Key ID: E02DA3D397792C46

View File

@ -440,6 +440,8 @@ static int compute_app_digest(uint8_t *digest)
static enum state start_where(struct context *ctx)
{
assert(ctx != NULL);
// Where do we start? Read resetinfo 'startfrom'
switch (resetinfo->type) {
case START_DEFAULT: