forked from enlightenment/efl
ecore_timer test: Pre-increment variable to prevent buffer overflow
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
parent
34ce73badd
commit
53e7fb6edc
|
@ -47,7 +47,7 @@ _timer2_cb(void *data)
|
|||
struct _timers *timer = (struct _timers*)data;
|
||||
|
||||
// choose next settings (delay, interval, precision) for timer 1
|
||||
if (timer->num_elem++ > 2)
|
||||
if (++timer->num_elem > 2)
|
||||
timer->num_elem = 0;
|
||||
|
||||
// check add/delay timer 2
|
||||
|
|
Loading…
Reference in New Issue