patches/gnome-session-16-null-prop-name.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 15697 f729aa670a3d
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.

diff -urN gnome-session-2.26.1/gnome-session/gsm-xsmp-client.c ../SUNWgnome-session-2.26.1.hacked/gnome-session-2.26.1/gnome-session/gsm-xsmp-client.c
--- gnome-session-2.26.1/gnome-session/gsm-xsmp-client.c	2009-04-30 16:31:31.198605588 +0100
+++ ../SUNWgnome-session-2.26.1.hacked/gnome-session-2.26.1/gnome-session/gsm-xsmp-client.c	2009-04-30 16:47:46.285472714 +0100
@@ -784,6 +784,9 @@
         char   *name;
 
         prop = find_property (GSM_XSMP_CLIENT (client), SmProgram, NULL);
+        if (!prop)
+                return NULL;
+
         name = prop_to_command (prop);
 
         return name;