Skip to content

Commit e2d99c8

Browse files
authored
Update bin2cpp.cpp
1 parent be864b9 commit e2d99c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin2cpp20/bin2cpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void convertStreamToString(bool sorted, std::string_view name, std::istream &in,
196196
while(!in.eof()) {
197197
std::string line;
198198
std::getline(in, line);
199-
if(in) {
199+
if(in && line.length() > 0) {
200200
v.push_back(line);
201201
length += line.length() + 1;
202202
}

0 commit comments

Comments
 (0)