Patch for gnome-libs



Hi,

The following patch checks to see if item->type is NULL before
attempting the comparison, and fixes (or at least wraps a bandaid
around) the problem:

Without this patch wm-properties-capplet segfault.

Christian

--- libgnome/gnome-dentry.c.orig	Sat Sep 16 12:24:51 2000
+++ libgnome/gnome-dentry.c	Sat Oct 21 14:24:39 2000
@@ -631,7 +631,7 @@
 	}
 		
 	/* FIXME: do something if there's an error.  */
-	if (strcmp (item->type, "URL") == 0) {
+	if (item->type && strcmp (item->type, "URL") == 0) {
 		gnome_url_show (exec_str);
 	} else {
 		gnome_execute_async_with_env (NULL, uargs, uargv, envc, envp);




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