Skip to content

Commit 7096f4d

Browse files
committed
Bug fix when reading local files
1 parent ad73d31 commit 7096f4d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/dataio.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,8 @@ g3_istream_handle(std::shared_ptr<std::istream> &stream)
172172
boost::iostreams::file_descriptor_source *fs =
173173
is->component<boost::iostreams::file_descriptor_source>(
174174
is->size() - 1);
175-
if (!fs)
176-
log_fatal("Could not get file descriptor source");
177175

178-
return fs->handle();
176+
return !fs ? -1 : fs->handle();
179177
}
180178

181179
std::shared_ptr<std::ostream>

0 commit comments

Comments
 (0)