diff options
Diffstat (limited to 'thirdparty/thorvg/src/common/tvgArray.h')
-rw-r--r-- | thirdparty/thorvg/src/common/tvgArray.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/thorvg/src/common/tvgArray.h b/thirdparty/thorvg/src/common/tvgArray.h index d95df40460..8178bd0e42 100644 --- a/thirdparty/thorvg/src/common/tvgArray.h +++ b/thirdparty/thorvg/src/common/tvgArray.h @@ -61,6 +61,7 @@ struct Array void push(Array<T>& rhs) { + if (rhs.count == 0) return; grow(rhs.count); memcpy(data + count, rhs.data, rhs.count * sizeof(T)); count += rhs.count; |