cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=41a9e2149e7b118e73578afa7f499021f7bfb06a
commit 41a9e2149e7b118e73578afa7f499021f7bfb06a Author: Cedric BAIL <cedric.b...@samsung.com> Date: Thu Mar 20 16:47:25 2014 +0900 eio: let's not divide by 0. fix CID 1193208. --- src/lib/eio/eio_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eio/eio_main.c b/src/lib/eio/eio_main.c index 632d022..812437d 100644 --- a/src/lib/eio/eio_main.c +++ b/src/lib/eio/eio_main.c @@ -149,7 +149,7 @@ eio_progress_send(Ecore_Thread *thread, Eio_File_Progress *op, long long current progress->op = op->op; progress->current = current; progress->max = max; - progress->percent = (float) current * 100.0 / (float) max; + progress->percent = max ? (float) current * 100.0 / (float) max : 100; progress->source = eina_stringshare_ref(op->source); progress->dest = eina_stringshare_ref(op->dest); --