diff src/gtkprefs.c @ 9307:2138b3a07cb8

[gaim-migrate @ 10115] [02:32] <grim> http://www.reaperworld.com/code/gaim/gaim-0.79cvs-doc_fixes_and_some_extended_null_checking_in_plugin_structs.diff [02:32] <grim> longest diff name EVER!! committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Fri, 18 Jun 2004 07:39:02 +0000
parents fe931c791fc0
children 7b48e7c07bcf
line wrap: on
line diff
--- a/src/gtkprefs.c	Fri Jun 18 07:28:25 2004 +0000
+++ b/src/gtkprefs.c	Fri Jun 18 07:39:02 2004 +0000
@@ -1888,9 +1888,13 @@
 	plug = g_value_get_pointer(&val);
 
 	pname = g_markup_escape_text(_(plug->info->name), -1);
-	pdesc = g_markup_escape_text(_(plug->info->description), -1);
-	pauth = g_markup_escape_text(_(plug->info->author), -1);
-	pweb = g_markup_escape_text(_(plug->info->homepage), -1);
+	pdesc = (plug->info->description) ? 
+			g_markup_escape_text(_(plug->info->description), -1) : NULL;
+	pauth = (plug->info->author) ?
+			g_markup_escape_text(_(plug->info->author), -1) : NULL;
+	pweb = (plug->info->homepage) ? 
+		   g_markup_escape_text(_(plug->info->homepage), -1) : NULL;
+
 	if (plug->error != NULL) {
 		perr = g_markup_escape_text(_(plug->error), -1);
 		buf = g_strdup_printf(