diff --git a/src/storage.cpp b/src/storage.cpp index ee29a958b..dffea8267 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -608,7 +608,7 @@ namespace libtorrent m_pool.release(this); buffer().swap(m_scratch_buffer); - int error; + int error = 0; std::string error_file; // delete the files from disk