Skip to content

Commit 23be984

Browse files
authored
This PR seems to fix #8704 (> 1 consecutive rows with wrong number of columns) (#8705)
1 parent b3580a7 commit 23be984

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/gmt_io.c

+1
Original file line numberDiff line numberDiff line change
@@ -8377,6 +8377,7 @@ struct GMT_DATATABLE *gmtlib_read_table(struct GMT_CTRL *GMT, void *source, unsi
83778377
while (! (GMT->current.io.status & (GMT_IO_SEGMENT_HEADER | GMT_IO_GAP | GMT_IO_EOF))) { /* Keep going until false or find a new segment header */
83788378
if (GMT->current.io.status & GMT_IO_MISMATCH) {
83798379
In = GMT->current.io.input (GMT, fp, &n_expected_fields, &status);
8380+
if (In == NULL) continue;
83808381
if ((GMT->current.io.status & (GMT_IO_SEGMENT_HEADER | GMT_IO_GAP | GMT_IO_EOF))) break;
83818382
}
83828383

0 commit comments

Comments
 (0)