From 2728af29502a48c0343d01ad994639c265b54278 Mon Sep 17 00:00:00 2001 From: Ian Gordon Date: Fri, 3 Feb 2017 14:16:22 -0500 Subject: [PATCH] Initialize control point to CGPointZero --- lottie-ios/Classes/LAAnimatablePointValue.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lottie-ios/Classes/LAAnimatablePointValue.m b/lottie-ios/Classes/LAAnimatablePointValue.m index 5410aa6eff..8fa9b84b8d 100644 --- a/lottie-ios/Classes/LAAnimatablePointValue.m +++ b/lottie-ios/Classes/LAAnimatablePointValue.m @@ -111,7 +111,8 @@ if (endPoint) { NSArray *controlPoint1 = keyframe[@"to"]; NSArray *controlPoint2 = keyframe[@"ti"]; - CGPoint cp1, cp2 = CGPointZero; + CGPoint cp1 = CGPointZero; + CGPoint cp2 = CGPointZero; CGPoint vertex = [self _pointFromValueArray:endPoint]; [pointKeyframes addObject:[NSValue valueWithCGPoint:vertex]];