Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_desktop Modified Files: ecore_desktop_paths.c Log Message: value is already checked. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop_paths.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- ecore_desktop_paths.c 23 Sep 2006 09:36:59 -0000 1.29 +++ ecore_desktop_paths.c 23 Sep 2006 09:37:59 -0000 1.30 @@ -816,40 +816,37 @@ if ((read) && (read->lines[0].line)) { value = read->lines[0].line; - if (value) + config_list = ecore_desktop_paths_to_list(value); + if (config_list) { - config_list = ecore_desktop_paths_to_list(value); - if (config_list) - { - char *this_config, *this_type; + char *this_config, *this_type; - ecore_list_goto_first(config_list); - while ((this_config = ecore_list_next(config_list)) != NULL) + ecore_list_goto_first(config_list); + while ((this_config = ecore_list_next(config_list)) != NULL) + { + if (ced->types) { - if (ced->types) - { - ecore_list_goto_first(ced->types); - while ((this_type = - ecore_list_next(ced->types)) != NULL) - { - _ecore_desktop_paths_massage_path(path, - ced->home, - this_config, - this_type); - _ecore_desktop_paths_check_and_add(paths, - path); - } - } - else + ecore_list_goto_first(ced->types); + while ((this_type = + ecore_list_next(ced->types)) != NULL) { - _ecore_desktop_paths_massage_path(path, ced->home, - this_config, - NULL); - _ecore_desktop_paths_check_and_add(paths, path); + _ecore_desktop_paths_massage_path(path, + ced->home, + this_config, + this_type); + _ecore_desktop_paths_check_and_add(paths, + path); } } - E_FN_DEL(ecore_list_destroy, config_list); + else + { + _ecore_desktop_paths_massage_path(path, ced->home, + this_config, + NULL); + _ecore_desktop_paths_check_and_add(paths, path); + } } + E_FN_DEL(ecore_list_destroy, config_list); } } ced->done = 1; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs