forked from enlightenment/enlightenment
Avoid some warnings on platforms where the no temperature data is available.
SVN revision: 14236
This commit is contained in:
parent
c50ebf3ee4
commit
f5d5044d9f
|
@ -783,7 +783,7 @@ _temperature_cb_check(void *data)
|
|||
|
||||
ef = data;
|
||||
therms = ecore_file_ls("/proc/acpi/thermal_zone");
|
||||
if (ecore_list_is_empty(therms))
|
||||
if (!therms || ecore_list_is_empty(therms))
|
||||
{
|
||||
FILE *f;
|
||||
|
||||
|
@ -817,7 +817,7 @@ _temperature_cb_check(void *data)
|
|||
free(name);
|
||||
}
|
||||
}
|
||||
ecore_list_destroy(therms);
|
||||
if (therms) ecore_list_destroy(therms);
|
||||
if (ret)
|
||||
{
|
||||
if (ef->have_temp != 1)
|
||||
|
|
Loading…
Reference in New Issue