elm_map: Avoid unlikely division by zero.
authorStefan Schmidt <s.schmidt@samsung.com>
Tue, 17 Jun 2014 09:01:22 +0000 (11:01 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Tue, 17 Jun 2014 09:01:22 +0000 (11:01 +0200)
commit1c530b6c0c796fb991c2641f0ed0add45a8a49da
treece96b55d3cb9a4410a798b2db318ad025a8682e7
parent88caf37e1b4fc6fc12b366cfab9c1c92f5500c50
elm_map: Avoid unlikely division by zero.

The division by zeor could happen when zoom_cnt is zeor OR when region_cnt
is zero. No need for both cases. In the curent implementation this is
impossible as both are hard coded defines. But code changes so we should
handle this.

CID: 1216619
src/lib/elm_map.c