[Eve] Fix problems spotted by clang static analyzer.

SVN revision: 52523
This commit is contained in:
Leandro Pereira 2010-09-20 22:14:11 +00:00
parent 9ee9f7523d
commit 580a6fa9f2
2 changed files with 6 additions and 4 deletions

View File

@ -690,7 +690,6 @@ _history_update(const char *url, const char *title)
static const char *
_chrome_title_get(Evas_Object *chrome, char *buf, size_t bufsize)
{
Browser_Window *win = evas_object_data_get(chrome, "win");
Evas_Object *view = evas_object_data_get(chrome, "view");
const char *url = ewk_view_uri_get(view);
const char *title = ewk_view_title_get(view);
@ -1198,7 +1197,10 @@ on_list_completely_hidden(void *data, Evas_Object *ed, const char *emission __UN
if (!eina_list_data_find(win->list_history, params->root))
{
if (params->root == more_menu_root || !params->root)
if (!params->root)
params->root = more_menu_root;
if (params->root == more_menu_root)
win->list_history = eina_list_prepend(win->list_history, NULL);
else
win->list_history = eina_list_prepend(win->list_history, params->root);

View File

@ -587,9 +587,9 @@ elm_main(int argc, char **argv)
Eina_Bool disable_touch_interface = 0xff;
char *user_agent_option = NULL;
const char *user_agent_str;
E_DBus_Connection *conn;
E_DBus_Connection *conn = NULL;
size_t dirlen;
Ecore_Timer *session_save_timer;
Ecore_Timer *session_save_timer = NULL;
Ecore_Getopt_Value values[] = {
ECORE_GETOPT_VALUE_BOOL(app.is_fullscreen),