Commit 00a3a55a authored by Milan Crha's avatar Milan Crha

M!5 - Replace custom expand/collapse icons with gtk stock icons ][

Fix possible use of uninitialized variables caused by the patch.

Related to !5
parent 19e4d7b2
......@@ -619,8 +619,8 @@ toggle_headers_visibility (WebKitDOMElement *button,
WebKitDOMEvent *event,
WebKitDOMDocument *document)
{
WebKitDOMElement *short_headers, *full_headers, *button_image;
WebKitDOMCSSStyleDeclaration *css_short, *css_full;
WebKitDOMElement *short_headers, *full_headers = NULL, *button_image = NULL;
WebKitDOMCSSStyleDeclaration *css_short, *css_full = NULL;
GSettings *settings;
gboolean expanded;
const gchar *path;
......@@ -678,8 +678,8 @@ toggle_address_visibility (WebKitDOMElement *element,
WebKitDOMEvent *event,
gpointer user_data)
{
WebKitDOMElement *full_addr, *ellipsis, *parent, *img, *tmp;
WebKitDOMCSSStyleDeclaration *css_full, *css_ellipsis;
WebKitDOMElement *full_addr = NULL, *ellipsis = NULL, *parent, *img, *tmp;
WebKitDOMCSSStyleDeclaration *css_full = NULL, *css_ellipsis = NULL;
gchar *property_value;
gboolean expanded;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment