Fix more ASAN errors

This commit is contained in:
twinaphex 2017-05-29 02:21:56 +02:00
parent c6ead6e973
commit d2bc5e0454

View File

@ -110,8 +110,7 @@ static JSON_Parser_HandlerResult JSON_CALL StringHandler(
{ {
if (pCtx->cur_field) if (pCtx->cur_field)
{ {
if (!string_is_empty(pCtx->cur_field) && if (string_is_equal(pCtx->cur_field, "game_crc"))
string_is_equal_fast(pCtx->cur_field, "game_crc", 8))
{ {
/* CRC comes in as a string but it is stored /* CRC comes in as a string but it is stored
* as an unsigned casted to int. */ * as an unsigned casted to int. */