Unverified Commit 2bbe7372 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

bugfix: uninitialized position on new OpenFile

The file position of a newly created OpenFile
it wasn't set correctly to 0.
parent 77a46c01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ OpenFile::OpenFile(const string& path, const bool append_flag) : path_(path), ap
        exit(1);
    }
    fd_ = fileno(tmp_file_); // get a valid file descriptor from the kernel
    off_t pos_ = 0; // TODO set the pos according to the flag and delete the flag from fd map??
    pos_ = 0; // TODO set the pos according to the flag and delete the flag from fd map??
}

string OpenFile::path() const {