Skip to content

Commit 4d3c7f7

Browse files
authored
Allow 0 width columns in sas7bdat reader (#354)
1 parent 140f047 commit 4d3c7f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sas/readstat_sas7bdat_read.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ static readstat_error_t sas7bdat_validate_column(col_info_t *col_info) {
667667
}
668668
}
669669
if (col_info->type == READSTAT_TYPE_STRING) {
670-
if (col_info->width > INT16_MAX || col_info->width == 0) {
670+
if (col_info->width > INT16_MAX) {
671671
return READSTAT_ERROR_PARSE;
672672
}
673673
}

0 commit comments

Comments
 (0)