mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-18 22:35:50 -04:00
fw: Check NULL pointer in main.c
This commit is contained in:
parent
bc8efe03e7
commit
65e67b604d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user