Browse Source

fix use of possibly uninitialized variable.

sisyphus
Dustin Falgout 8 years ago
parent
commit
113897331c
  1. 10
      src/webkit2-extension.c

10
src/webkit2-extension.c

@ -52,7 +52,7 @@
/* CLion bugs */ /* CLion bugs */
#ifndef guint64 #ifndef guint64
/* typedef unsigned long guint64; */ #define guint64 typedef unsigned long guint64;
#endif #endif
@ -970,7 +970,6 @@ start_session_cb(JSContextRef context,
if (NULL != web_page) { if (NULL != web_page) {
dom_document = webkit_web_page_get_dom_document(web_page); dom_document = webkit_web_page_get_dom_document(web_page);
dom_window = webkit_dom_document_get_default_view(dom_document); dom_window = webkit_dom_document_get_default_view(dom_document);
}
if (dom_window) { if (dom_window) {
/* Stop theme heartbeat */ /* Stop theme heartbeat */
@ -978,6 +977,7 @@ start_session_cb(JSContextRef context,
dom_window, "GreeterBridge", "Heartbeat::Exit" dom_window, "GreeterBridge", "Heartbeat::Exit"
); );
} }
}
SESSION_STARTING = TRUE; SESSION_STARTING = TRUE;
@ -1278,6 +1278,7 @@ get_dirlist_cb(JSContextRef context,
} }
} }
static JSValueRef static JSValueRef
txt2html_cb(JSContextRef context, txt2html_cb(JSContextRef context,
JSObjectRef function, JSObjectRef function,
@ -1589,7 +1590,7 @@ window_object_cleared_callback(WebKitScriptWorld *world,
dom_window = webkit_dom_document_get_default_view(dom_document); dom_window = webkit_dom_document_get_default_view(dom_document);
if (dom_window) { if (dom_window) {
/* Notify the UI process that the page is loaded */ /* Notify the UI process that the greeter is loaded */
webkit_dom_dom_window_webkit_message_handlers_post_message( webkit_dom_dom_window_webkit_message_handlers_post_message(
dom_window, "GreeterBridge", page_loaded_message dom_window, "GreeterBridge", page_loaded_message
); );
@ -1890,7 +1891,8 @@ webkit_web_extension_initialize(WebKitWebExtension *extension) {
g_signal_connect( g_signal_connect(
G_OBJECT(greeter), G_OBJECT(greeter),
"show-prompt", "show-prompt",
G_CALLBACK(show_prompt_cb), extension G_CALLBACK(show_prompt_cb),
extension
); );
g_signal_connect( g_signal_connect(

Loading…
Cancel
Save