Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sas/readstat_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ readstat_error_t sas_read_header(readstat_io_t *io, sas_header_info_t *hinfo,
goto cleanup;
}
// revision_tag is usually M, but J has been observed in the wild (not created with SAS?)
if (revision_tag != 'M' && revision_tag != 'J') {
if ((major == '8' || major == '9') && revision_tag != 'M' && revision_tag != 'J') {
retval = READSTAT_ERROR_PARSE;
goto cleanup;
}
Expand Down
Loading