From: Enlightenment S. <no-...@en...> - 2010-09-20 22:14:18
|
Log: [Eve] Fix problems spotted by clang static analyzer. Author: acidx Date: 2010-09-20 15:14:11 -0700 (Mon, 20 Sep 2010) New Revision: 52523 Modified: trunk/eve/src/bin/chrome.c trunk/eve/src/bin/main.c Modified: trunk/eve/src/bin/chrome.c =================================================================== --- trunk/eve/src/bin/chrome.c 2010-09-20 22:14:07 UTC (rev 52522) +++ trunk/eve/src/bin/chrome.c 2010-09-20 22:14:11 UTC (rev 52523) @@ -690,7 +690,6 @@ 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 @@ 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); Modified: trunk/eve/src/bin/main.c =================================================================== --- trunk/eve/src/bin/main.c 2010-09-20 22:14:07 UTC (rev 52522) +++ trunk/eve/src/bin/main.c 2010-09-20 22:14:11 UTC (rev 52523) @@ -587,9 +587,9 @@ 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), |