test_progressbar.c: Fixed wrong null set of timer.

If pd is null, pd->timer will crash and cannot set it to null.
This fixes coverity CID 1126081.
This commit is contained in:
Daniel Juyung Seo 2013-11-07 00:00:38 +09:00
parent 03ddfa12c8
commit 90f9c6bc64
1 changed files with 1 additions and 5 deletions

View File

@ -259,11 +259,7 @@ _progressbar2_timer_cb(void *data)
Progressbar_Data *pd = data;
double progress;
if (!pd)
{
pd->timer = NULL;
return ECORE_CALLBACK_CANCEL;
}
if (!pd) return ECORE_CALLBACK_CANCEL;
progress = elm_progressbar_value_get (pd->pb1);