Skip to content

Commit

Permalink
Merge 6c9a0f4 into cdb3454
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Sep 1, 2016
2 parents cdb3454 + 6c9a0f4 commit cd709de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/internal/stack.h
Expand Up @@ -114,7 +114,7 @@ class Stack {
template<typename T>
RAPIDJSON_FORCEINLINE void Reserve(size_t count = 1) {
// Expand the stack if needed
if (RAPIDJSON_UNLIKELY(stackTop_ + sizeof(T) * count > stackEnd_))
if (RAPIDJSON_UNLIKELY(!stackTop_ || (stackTop_ + sizeof(T) * count > stackEnd_)))
Expand<T>(count);
}

Expand Down

0 comments on commit cd709de

Please sign in to comment.