[epiphany] Prevent use of unitialized memory



commit deb8f250c145e4cdc52a4618c2a15dfcd6276e5d
Author: LubomÃr SedlÃÅ <lubomir sedlar gmail com>
Date:   Mon May 14 15:10:15 2012 +0200

    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

 src/popup-commands.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 1690628..079dc59 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]