Cleanup of clang's static analyzer warnings for efreet.

SVN revision: 40114
This commit is contained in:
Luis Felipe Strano Moraes 2009-04-16 17:45:57 +00:00
parent babc8d254f
commit 37ff2edaff
5 changed files with 3 additions and 9 deletions

View File

@ -302,8 +302,8 @@ ef_cb_desktop_command_get(void)
/* clean up */
efreet_desktop_free(desktop);
files = eina_list_free(files);
expected = eina_list_free(expected);
eina_list_free(files);
eina_list_free(expected);
ret = info->error > 0 ? 0 : 1;
free(info);

View File

@ -108,7 +108,7 @@ efreet_config_home_get(void)
/**
* @return Returns the Eina_List of preference ordered extra config directories
* @brief Returns the Eina_List of prefernece oredred extra config
* @brief Returns the Eina_List of prefernece ordered extra config
* directories
*
* @note The returned list is static inside Efreet. If you add/remove from the

View File

@ -1062,7 +1062,6 @@ efreet_icon_populate(Efreet_Icon *icon, const char *file)
t = strdup(tmp);
s = t;
p = t;
while (s)
{
Efreet_Icon_Point *point;

View File

@ -670,8 +670,6 @@ efreet_menu_parse(const char *path)
internal->inline_header = 1;
internal->inline_alias = 0;
search_dirs = efreet_config_dirs_get();
efreet_menu_path_set(internal, path);
if (!efreet_menu_handle_menu(internal, xml))
{

View File

@ -187,9 +187,6 @@ efreet_util_path_in_default(const char *section, const char *path)
EINA_LIST_FREE(dirs, dir)
{
size_t len;
len = strlen(dir);
if (!strncmp(path, dir, strlen(dir)))
{
ret = dir;