Avoid some warnings on platforms where the no temperature data is available.

SVN revision: 14236
This commit is contained in:
rbdpngn 2005-04-19 04:04:45 +00:00 committed by rbdpngn
parent c50ebf3ee4
commit f5d5044d9f
1 changed files with 2 additions and 2 deletions

View File

@ -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)