aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Database/Snapshot
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2018-06-25 10:49:10 -0700
committerGravatar GitHub <noreply@github.com>2018-06-25 10:49:10 -0700
commit16132541d439baa9a1f80bb2b9b004f7178cba4d (patch)
tree84401d4a1576a56b23e010936ba1195b3620b4f1 /Firebase/Database/Snapshot
parent19e0c0bb6ab4e3fdbc72acf9bd967e1ffaa3866d (diff)
Fix undefined behavior sanitizer issues in RTDB (#1445)
Diffstat (limited to 'Firebase/Database/Snapshot')
-rw-r--r--Firebase/Database/Snapshot/FIndexedNode.m2
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;