Commit 6086a154 authored by A. Wilcox's avatar A. Wilcox

XBridge: Don't pre-increment next_obj when setting sentinel value of array.

parent c26bc962
......@@ -98,7 +98,7 @@ void bridge_helper_cppify_dict(NSDictionary *changedKeys, WTDictionary *properti
abort();
}
}
array[++next_obj] = NULL;
array[next_obj] = NULL;
properties->set([key UTF8String], array, WTDICT_KEY_MANAGED);
}
else
......
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