Commit f8f371c4 authored by Marc Vef's avatar Marc Vef
Browse files

Merge branch 'file_pos' into 'master'

bugfix: uninitialized position on new OpenFile. 

See merge request ada-fs/fs!7
parents 2872c597 2bbe7372
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 {