return NULL if header version is wrong

This commit is contained in:
Laurent Vivier 2008-08-07 19:32:11 +00:00
parent d7f20aeb29
commit b5058db8ef

View File

@ -30,7 +30,7 @@ int8_t* emile_second_get_configuration(int fd)
if (!EMILE_COMPAT(EMILE_06_SIGNATURE, read_long(&header.signature)))
{
lseek(fd, offset, SEEK_SET);
return conf;
return NULL;
}
}