Fix a warning

This commit is contained in:
Victor Zverovich 2018-05-20 17:09:12 -07:00
parent 589f5f37b6
commit 2196025dd1

View File

@ -223,9 +223,9 @@ buffered_file file::fdopen(const char *mode) {
if (!f)
FMT_THROW(system_error(errno,
"cannot associate stream with file descriptor"));
buffered_file file(f);
buffered_file bf(f);
fd_ = -1;
return file;
return bf;
}
long getpagesize() {