gimp r27113 - in trunk: . app/widgets



Author: mitch
Date: Thu Oct  2 17:16:14 2008
New Revision: 27113
URL: http://svn.gnome.org/viewvc/gimp?rev=27113&view=rev

Log:
2008-10-02  Michael Natterer  <mitch gimp org>

	Bug 554646 â Opening Help crashes GIMP with lqr-plugin installed

	* app/widgets/gimphelp.c (gimp_help_get_help_domains): need to
	assign (*foo)[i] and not *foo[i] of a gchar** returned via return
	value location.



Modified:
   trunk/ChangeLog
   trunk/app/widgets/gimphelp.c

Modified: trunk/app/widgets/gimphelp.c
==============================================================================
--- trunk/app/widgets/gimphelp.c	(original)
+++ trunk/app/widgets/gimphelp.c	Thu Oct  2 17:16:14 2008
@@ -503,13 +503,13 @@
   *domain_names = g_new0 (gchar *, n_domains + 1);
   *domain_uris  = g_new0 (gchar *, n_domains + 1);
 
-  *domain_names[0] = g_strdup ("http://www.gimp.org/help";);
-  *domain_uris[0]  = gimp_help_get_default_domain_uri (gimp);
+  (*domain_names)[0] = g_strdup ("http://www.gimp.org/help";);
+  (*domain_uris)[0]  = gimp_help_get_default_domain_uri (gimp);
 
   for (i = 0; i < n_domains; i++)
     {
-      *domain_names[i + 1] = plug_in_domains[i];
-      *domain_uris[i + 1]  = plug_in_uris[i];
+      (*domain_names)[i + 1] = plug_in_domains[i];
+      (*domain_uris)[i + 1]  = plug_in_uris[i];
     }
 
   g_free (plug_in_domains);



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