Fix duplicated variable assign (Xcode suggestion)

Remove unnecessary variable assignment as suggested/warned by Xcode
'Although the value stored to 'from' is used in the enclosing expression, the value is never actually read from 'from''
This commit is contained in:
Bernhard Schelling 2021-02-09 23:43:06 +09:00 committed by GitHub
parent 4a615c4465
commit df44195234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2020 The RetroArch team
/* Copyright (C) 2010-2021 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (rjson.c).
@ -339,7 +339,6 @@ static bool _rjson_validate_utf8(rjson_t *json)
else if (first <= 0xEF)
{
if ((from = p + 3) > to) goto invalid_utf8;
from = p + 3;
continue_length_3:
if ((c = p[2]) < 0x80 || c > 0xBF) goto invalid_utf8;
goto continue_length_2;