summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_poll.c
diff options
context:
space:
mode:
authorPatryk Kaczmarek <patryk.k@samsung.com>2012-09-18 11:38:08 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-09-18 11:38:08 +0000
commitcc72c09b84b6e99bfcaf41255eec1987b0dc836f (patch)
tree4d3bc4705e0da5f9ef1a0ed8929cdf794ca86c88 /legacy/ecore/src/lib/ecore/ecore_poll.c
parent042ecacd0f6cdbb5a7ed848d4fdf11df6672e70c (diff)
From: Patryk Kaczmarek <patryk.k@samsung.com>
Subject: [E-devel] [Patch] [Ecore] Protection for giving below zero values for ecore_poll and ecore_timer Please also check attached patch for ecore_timer_interval_set and ecore_poller_poll_interval_set. It checks if given time is not zero or below zero. SVN revision: 76805
Diffstat (limited to 'legacy/ecore/src/lib/ecore/ecore_poll.c')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_poll.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_poll.c b/legacy/ecore/src/lib/ecore/ecore_poll.c
index 384ee68228..089212ef57 100644
--- a/legacy/ecore/src/lib/ecore/ecore_poll.c
+++ b/legacy/ecore/src/lib/ecore/ecore_poll.c
@@ -194,6 +194,13 @@ ecore_poller_poll_interval_set(Ecore_Poller_Type type __UNUSED__,
194 double poll_time) 194 double poll_time)
195{ 195{
196 EINA_MAIN_LOOP_CHECK_RETURN; 196 EINA_MAIN_LOOP_CHECK_RETURN;
197
198 if (poll_time < 0.0)
199 {
200 ERR("Poll time %f less than zero, ignored", poll_time);
201 return;
202 }
203
197 poll_interval = poll_time; 204 poll_interval = poll_time;
198 _ecore_poller_next_tick_eval(); 205 _ecore_poller_next_tick_eval();
199} 206}