fix guaranteed crash in efm_op...rustyBSD check this if you happen to read

SVN revision: 80826
This commit is contained in:
Mike Blumenkrantz 2012-12-13 11:49:07 +00:00
parent 4a2837830b
commit 9b4ec19471
1 changed files with 2 additions and 1 deletions

View File

@ -1097,7 +1097,8 @@ _e_fm_op_update_progress(E_Fm_Op_Task *task, off_t _plus_e_fm_op_done, off_t _pl
eta = (int)(eta + 0.5);
}
if ((percent != ppercent) || (eta != peta) || ((task) && (task != ptask)))
if (!task) return;
if ((percent != ppercent) || (eta != peta) || (task != ptask))
{
ppercent = percent;
peta = eta;