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:
parent
03ddfa12c8
commit
90f9c6bc64
|
@ -259,11 +259,7 @@ _progressbar2_timer_cb(void *data)
|
||||||
Progressbar_Data *pd = data;
|
Progressbar_Data *pd = data;
|
||||||
double progress;
|
double progress;
|
||||||
|
|
||||||
if (!pd)
|
if (!pd) return ECORE_CALLBACK_CANCEL;
|
||||||
{
|
|
||||||
pd->timer = NULL;
|
|
||||||
return ECORE_CALLBACK_CANCEL;
|
|
||||||
}
|
|
||||||
|
|
||||||
progress = elm_progressbar_value_get (pd->pb1);
|
progress = elm_progressbar_value_get (pd->pb1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue