diff options
Diffstat (limited to 'thirdparty/thorvg/src/common/tvgCompressor.cpp')
-rw-r--r-- | thirdparty/thorvg/src/common/tvgCompressor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/thirdparty/thorvg/src/common/tvgCompressor.cpp b/thirdparty/thorvg/src/common/tvgCompressor.cpp index b61718f9a7..aebe9a4ef1 100644 --- a/thirdparty/thorvg/src/common/tvgCompressor.cpp +++ b/thirdparty/thorvg/src/common/tvgCompressor.cpp @@ -478,6 +478,8 @@ size_t b64Decode(const char* encoded, const size_t len, char** decoded) unsigned long djb2Encode(const char* str) { + if (!str) return 0; + unsigned long hash = 5381; int c; |