diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-06-03 23:09:28 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-06-03 23:09:28 +0900 |
| commit | 83f4bced07909fb553c11c860816aa6db3de9615 (patch) | |
| tree | 739dd4fd010046a6ccca1d63622b81bc7d5793f0 /src/HttpDownloadCommand.cc | |
| parent | b1a8df4cd9bcc50c6e67796910175a8dd3029808 (diff) | |
Fix assertion failure when dir option of paused HTTP/FTP download is changed
When the directory is changed via aria2.changeOption RPC method, we
directly change first FileEntry's path using FileEntry::setPath(). If
there is no PREF_OUT option is given, basically file name is unknown,
so we just set empty string and let the next run determine the correct
file name and new directory is applied there. But previous code does
not reset length property of FileEntry, so the unexpected code path is
taken when unpaused and its path expects path is not empty string.
This commit fixes this issue by setting length to 0 using
FileEntry::setLength().
Diffstat (limited to 'src/HttpDownloadCommand.cc')
0 files changed, 0 insertions, 0 deletions
