Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/battery Modified Files: e_mod_main.c Log Message: get rid of ecore warning =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/battery/e_mod_main.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- e_mod_main.c 23 Apr 2005 05:16:24 -0000 1.31 +++ e_mod_main.c 25 Apr 2005 05:58:45 -0000 1.32 @@ -786,7 +786,7 @@ /* Read some information on first run. */ bats = ecore_file_ls("/proc/acpi/battery"); - while ((name = ecore_list_next(bats))) + while ((bats) && (name = ecore_list_next(bats))) { FILE *f; @@ -849,7 +849,7 @@ } free(name); } - ecore_list_destroy(bats); + if (bats) ecore_list_destroy(bats); if (ef->battery_prev_drain < 1) ef->battery_prev_drain = 1; if (bat_drain < 1) bat_drain = ef->battery_prev_drain; ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs