mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-06-02 13:02:40 -04:00
fw: Check NULL pointer in main.c
This commit is contained in:
parent
bc8efe03e7
commit
65e67b604d
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue