mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
the scope of the buf variable was narrowed too far
This commit is contained in:
parent
2977636d58
commit
e5e11e3c83
1 changed files with 2 additions and 1 deletions
|
@ -729,7 +729,8 @@ static uint64_t loadFromFile(tr_torrent* tor, uint64_t fieldsToLoad, bool* didRe
|
|||
|
||||
std::string const filename = getResumeFilename(tor, TR_METAINFO_BASENAME_HASH);
|
||||
|
||||
if (auto buf = std::vector<char>{}; !tr_loadFile(buf, filename.c_str(), &error) ||
|
||||
auto buf = std::vector<char>{};
|
||||
if (!tr_loadFile(buf, filename.c_str(), &error) ||
|
||||
!tr_variantFromBuf(
|
||||
&top,
|
||||
TR_VARIANT_PARSE_BENC | TR_VARIANT_PARSE_INPLACE,
|
||||
|
|
Loading…
Reference in a new issue