Commit 4d1a663b authored by Eric Cano's avatar Eric Cano
Browse files

Fixed crashing memory manager with zero length files.

The tape write task not lister anymore to the memory manager for zero length files.
parent e0ecff5e
......@@ -51,7 +51,8 @@ namespace daemon {
m_srcURL(m_archiveJob->srcURL)
{
//register its fifo to the memory manager as a client in order to get mem block
mm.addClient(&m_fifo);
// This should not be done in the case of a zero length file.
if (archiveJob->archiveFile.fileSize) mm.addClient(&m_fifo);
}
//------------------------------------------------------------------------------
// fileSize
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment