aboutsummaryrefslogtreecommitdiffstats
path: root/src/popup-commands.c
diff options
context:
space:
mode:
authorLubomír Sedlář <lubomir.sedlar@gmail.com>2012-05-14 21:10:15 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-05-21 17:51:13 +0800
commitdeb8f250c145e4cdc52a4618c2a15dfcd6276e5d (patch)
treeb33bb24bc59d869e635844ccf110d3050cf2f9f8 /src/popup-commands.c
parentde2c7c273388467c91aec7c338cff287e3819ae1 (diff)
downloadgsoc2013-epiphany-deb8f250c145e4cdc52a4618c2a15dfcd6276e5d.tar
gsoc2013-epiphany-deb8f250c145e4cdc52a4618c2a15dfcd6276e5d.tar.gz
gsoc2013-epiphany-deb8f250c145e4cdc52a4618c2a15dfcd6276e5d.tar.bz2
gsoc2013-epiphany-deb8f250c145e4cdc52a4618c2a15dfcd6276e5d.tar.lz
gsoc2013-epiphany-deb8f250c145e4cdc52a4618c2a15dfcd6276e5d.tar.xz
gsoc2013-epiphany-deb8f250c145e4cdc52a4618c2a15dfcd6276e5d.tar.zst
gsoc2013-epiphany-deb8f250c145e4cdc52a4618c2a15dfcd6276e5d.zip
Prevent use of unitialized memory
Initialize the variable to NULL, so that even without another assignment it is safe to read it. https://bugzilla.gnome.org/show_bug.cgi?id=675888
Diffstat (limited to 'src/popup-commands.c')
-rw-r--r--src/popup-commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 169062864..079dc5935 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -91,7 +91,7 @@ popup_cmd_bookmark_link (GtkAction *action,
{
EphyEmbedEvent *event;
char *title;
- char *location;
+ char *location = NULL;
guint context;
WebKitHitTestResult *result;
WebKitDOMNode *node, *first_child;