gdesktopappinfo: Initialize sn_id to NULL
authorColin Walters <walters@verbum.org>
Sat, 12 Apr 2014 17:21:20 +0000 (13:21 -0400)
committerColin Walters <walters@verbum.org>
Sat, 12 Apr 2014 17:21:20 +0000 (13:21 -0400)
Otherwise we'll be freeing a random stack pointer.

gio/gdesktopappinfo.c

index 7cf3cc0..3d5fe01 100644 (file)
@@ -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))