mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
return NULL if header version is wrong
This commit is contained in:
parent
d7f20aeb29
commit
b5058db8ef
@ -30,7 +30,7 @@ int8_t* emile_second_get_configuration(int fd)
|
|||||||
if (!EMILE_COMPAT(EMILE_06_SIGNATURE, read_long(&header.signature)))
|
if (!EMILE_COMPAT(EMILE_06_SIGNATURE, read_long(&header.signature)))
|
||||||
{
|
{
|
||||||
lseek(fd, offset, SEEK_SET);
|
lseek(fd, offset, SEEK_SET);
|
||||||
return conf;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user