projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf51920
)
eio: let's not divide by 0.
author
Cedric BAIL
<cedric.bail@samsung.com>
Thu, 20 Mar 2014 07:47:25 +0000
(16:47 +0900)
committer
Cedric BAIL
<cedric.bail@samsung.com>
Thu, 20 Mar 2014 07:47:25 +0000
(16:47 +0900)
fix CID
1193208
.
src/lib/eio/eio_main.c
patch
|
blob
|
history
diff --git
a/src/lib/eio/eio_main.c
b/src/lib/eio/eio_main.c
index 632d02256edf272680d5661e6b35666bd9ae136c..812437da4c353dfad1f08a69c5ea3c4b07321048 100644
(file)
--- 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);