diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2018-06-25 10:49:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 10:49:10 -0700 |
commit | 16132541d439baa9a1f80bb2b9b004f7178cba4d (patch) | |
tree | 84401d4a1576a56b23e010936ba1195b3620b4f1 /Firebase/Database/Snapshot/FIndexedNode.m | |
parent | 19e0c0bb6ab4e3fdbc72acf9bd967e1ffaa3866d (diff) |
Fix undefined behavior sanitizer issues in RTDB (#1445)
Diffstat (limited to 'Firebase/Database/Snapshot/FIndexedNode.m')
-rw-r--r-- | Firebase/Database/Snapshot/FIndexedNode.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Firebase/Database/Snapshot/FIndexedNode.m b/Firebase/Database/Snapshot/FIndexedNode.m index e874dcf..9dc60e1 100644 --- a/Firebase/Database/Snapshot/FIndexedNode.m +++ b/Firebase/Database/Snapshot/FIndexedNode.m @@ -79,7 +79,7 @@ static FImmutableSortedSet *FALLBACK_INDEX; if ([self.index isEqual:[FKeyIndex keyIndex]]) { self.indexed = [FIndexedNode fallbackIndex]; } else { - __block BOOL sawChild; + __block BOOL sawChild = NO; [self.node enumerateChildrenUsingBlock:^(NSString *key, id<FNode> node, BOOL *stop) { sawChild = sawChild || [self.index isDefinedOn:node]; *stop = sawChild; |