Skip to content

Commit a7194fc

Browse files
committed
bugfix read.h
1 parent 474aa24 commit a7194fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/vclib/io/read.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ inline vcl::Tokenizer readAndTokenizeNextNonEmptyLineNoThrow(
170170
do {
171171
line = readNextNonEmptyLineNoThrow(file);
172172
tokenizer = vcl::Tokenizer(line, separator);
173-
} while (tokenizer.begin() == tokenizer.end());
173+
} while (file && tokenizer.begin() == tokenizer.end());
174174

175175
return tokenizer;
176176
}

0 commit comments

Comments
 (0)