From 580a6fa9f262f94f51f399df6c5e7209b3acecb9 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 20 Sep 2010 22:14:11 +0000 Subject: [PATCH] [Eve] Fix problems spotted by clang static analyzer. SVN revision: 52523 --- src/bin/chrome.c | 6 ++++-- src/bin/main.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/bin/chrome.c b/src/bin/chrome.c index df9df72..c0e061b 100644 --- a/src/bin/chrome.c +++ b/src/bin/chrome.c @@ -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); diff --git a/src/bin/main.c b/src/bin/main.c index 4aa16ca..06c12e5 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -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),