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:
10c8650
)
ephysics: add missing break in switch to avoid override variable with other cases
author
Stefan Schmidt
<stefan@osg.samsung.com>
Wed, 21 Oct 2015 12:32:44 +0000
(14:32 +0200)
committer
Stefan Schmidt
<stefan@osg.samsung.com>
Wed, 21 Oct 2015 12:37:18 +0000
(14:37 +0200)
Due to the missing break we would fall into the next case here which might lead
to variables overridden with wrong values.
CID: 1261441, 1261440, 1261438
src/lib/ephysics/ephysics_body.cpp
patch
|
blob
|
history
diff --git
a/src/lib/ephysics/ephysics_body.cpp
b/src/lib/ephysics/ephysics_body.cpp
index
b6a0abf
..
c212026
100644
(file)
--- a/
src/lib/ephysics/ephysics_body.cpp
+++ b/
src/lib/ephysics/ephysics_body.cpp
@@
-4624,6
+4624,7
@@
_ephysics_body_box_face_obj_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Obje
bw = body->size.w;
bh = h;
bd = w;
+ break;
case EPHYSICS_BODY_BOX_FACE_TOP:
case EPHYSICS_BODY_BOX_FACE_BOTTOM:
if ((w == body->size.w) && (h == body->size.d))