Skip to content
Snippets Groups Projects
Commit ee614821 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 63651957
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment