diff --git a/Event/ByteStreamStoragePlugins/src/fReadDavix.cxx b/Event/ByteStreamStoragePlugins/src/fReadDavix.cxx index 1dcda26eef490018106098025a80fe9f284f5faf..22e4db31f28511bcf927aa4068d73ee5b2a945d4 100644 --- a/Event/ByteStreamStoragePlugins/src/fReadDavix.cxx +++ b/Event/ByteStreamStoragePlugins/src/fReadDavix.cxx @@ -34,6 +34,7 @@ fReadDavix::fReadDavix() { m_pfd = 0; fOffset = 0; + fd = nullptr; davixParam = new Davix::RequestParams(); err = NULL; diff --git a/Event/ByteStreamStoragePlugins/src/fReadDavix.h b/Event/ByteStreamStoragePlugins/src/fReadDavix.h index d5e1edd5a7904e4b87555e4fc4bd63fe3d6a4c17..b4d9a4f8fb5b9e220fd7e404f86ce57036caebdd 100644 --- a/Event/ByteStreamStoragePlugins/src/fReadDavix.h +++ b/Event/ByteStreamStoragePlugins/src/fReadDavix.h @@ -26,14 +26,14 @@ class fReadDavix : public fRead fRead * newReader() const; private: - int m_pfd; // current file + int m_pfd; // current file, used as bool to check if file is open int64_t fOffset; Davix::Context c; Davix::RequestParams *davixParam; Davix::DavixError* err; Davix::DavPosix *pos; Davix::X509Credential *cert; - DAVIX_FD* fd; + DAVIX_FD* fd; // davix pointer to current file };