[glib] gdesktopappinfo: Initialize sn_id to NULL



commit af1772b6422967820d27dbb952f3ef42f2287a8f
Author: Colin Walters <walters verbum org>
Date:   Sat Apr 12 13:21:20 2014 -0400

    gdesktopappinfo: Initialize sn_id to NULL
    
    Otherwise we'll be freeing a random stack pointer.

 gio/gdesktopappinfo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 7cf3cc0..3d5fe01 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -2126,7 +2126,7 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo            *info,
       GPid pid;
       GList *launched_uris;
       GList *iter;
-      char *display, *sn_id;
+      char *display, *sn_id = NULL;
 
       old_uris = uris;
       if (!expand_application_parameters (info, exec_line, &uris, &argc, &argv, error))


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