Commit d4fac257 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Lars-Peter Clausen

Don't dereference final_start_seg and final_end_seg if NULL.

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.


svn path=/trunk/; revision=26725
parent aa129cfc
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.
2008-08-23 Lars-Peter Clausen <lars@metafoo.de>
Fix indentation in previous patch.
......
......@@ -1682,8 +1682,10 @@ gimp_gradient_segment_range_delete (GimpGradient *gradient,
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment