aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2010-02-19 02:39:24 +0800
committerGustavo Noronha Silva <gns@gnome.org>2010-02-19 02:40:42 +0800
commit0239346f27870ace37d8819cd7f934c34d83a01c (patch)
tree1cefdcf8ca7e7555b2b8a8d197e671422b38fa4a /embed/ephy-web-view.c
parent11411217fe5f2653994cfd94a3daf315ed1199e6 (diff)
downloadgsoc2013-epiphany-0239346f27870ace37d8819cd7f934c34d83a01c.tar
gsoc2013-epiphany-0239346f27870ace37d8819cd7f934c34d83a01c.tar.gz
gsoc2013-epiphany-0239346f27870ace37d8819cd7f934c34d83a01c.tar.bz2
gsoc2013-epiphany-0239346f27870ace37d8819cd7f934c34d83a01c.tar.lz
gsoc2013-epiphany-0239346f27870ace37d8819cd7f934c34d83a01c.tar.xz
gsoc2013-epiphany-0239346f27870ace37d8819cd7f934c34d83a01c.tar.zst
gsoc2013-epiphany-0239346f27870ace37d8819cd7f934c34d83a01c.zip
Make sure the strings are initialized to NULL
This fixes a crash reported ad-hoc in https://bugzilla.gnome.org/show_bug.cgi?id=609753. This is needed because we may bail out early, and try to free these strings without having properly initialized them.
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 7f2a493e1..ca32314d0 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -998,10 +998,10 @@ form_submitted_cb (JSContextRef js_context,
JSStringRef js_string;
JSValueRef js_value;
StorePasswordData *store_data;
- char *name_field_name;
- char *name_field_value;
- char *password_field_name;
- char *password_field_value;
+ char *name_field_name = NULL;
+ char *name_field_value = NULL;
+ char *password_field_name = NULL;
+ char *password_field_value = NULL;
SoupURI *uri;
WebKitWebView *web_view;