gimp r26725 - in trunk: . app/core



Author: larsc
Date: Sat Aug 23 13:20:54 2008
New Revision: 26725
URL: http://svn.gnome.org/viewvc/gimp?rev=26725&view=rev

Log:
2008-08-23  Lars-Peter Clausen  <lars metafoo de>

	* app/core/gimpgradient.c (gimp_gradient_segment_range_delete):
	Don't dereference final_start_seg and final_end_seg if NULL.



Modified:
   trunk/ChangeLog
   trunk/app/core/gimpgradient.c

Modified: trunk/app/core/gimpgradient.c
==============================================================================
--- trunk/app/core/gimpgradient.c	(original)
+++ trunk/app/core/gimpgradient.c	Sat Aug 23 13:20:54 2008
@@ -1682,8 +1682,10 @@
   return;
 
  premature_return:
-  *final_start_seg = start_seg;
-  *final_end_seg   = end_seg;
+  if (final_start_seg)
+    *final_start_seg = start_seg;
+  if (final_end_seg)
+    *final_end_seg = end_seg;
 }
 
 void



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