From 015c024b7aeb104d210990cef1e1128412dec343 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Mon, 22 Feb 2016 08:54:58 -0800 Subject: [PATCH] [ASPendingState] Give local variables default values --- AsyncDisplayKit/Private/_ASPendingState.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsyncDisplayKit/Private/_ASPendingState.mm b/AsyncDisplayKit/Private/_ASPendingState.mm index 1946812e66..ddb827f28c 100644 --- a/AsyncDisplayKit/Private/_ASPendingState.mm +++ b/AsyncDisplayKit/Private/_ASPendingState.mm @@ -122,8 +122,8 @@ typedef struct { ASDISPLAYNODE_INLINE void ASPendingStateApplyMetricsToLayer(_ASPendingState *state, CALayer *layer) { ASPendingStateFlags flags = state->_flags; if (flags.setFrame) { - CGRect _bounds; - CGPoint _position; + CGRect _bounds = CGRectZero; + CGPoint _position = CGPointZero; ASBoundsAndPositionForFrame(state->frame, layer.bounds.origin, layer.anchorPoint, &_bounds, &_position); layer.bounds = _bounds; layer.position = _position;