table_read: skip empty csv rows (some tools save as ,,,,,)

This commit is contained in:
stefan schippers 2024-02-27 11:56:18 +01:00
parent 95fc6377d4
commit 7ede51737d
1 changed files with 1 additions and 1 deletions

View File

@ -1300,7 +1300,7 @@ int table_read(const char *f)
}
line_ptr = line;
while(*line_ptr) { /* non empty line ? */
if(*line_ptr != ' ' && *line_ptr != '\t' && *line_ptr != '\n') {
if(*line_ptr != ',' && *line_ptr != ' ' && *line_ptr != '\t' && *line_ptr != '\n') {
empty = 0;
break;
}