return NULL if header version is wrong

This commit is contained in:
Laurent Vivier committed 2008-08-07 19:32:11 +00:00
1 parent d7f20aeb29
commit b5058db8ef
1 file changed
+1 -1
+1 -1
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;
}
}