mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 23:50:40 +00:00
Fix LGTM warning in UTF8 handling (#16507)
This commit is contained in:
parent
af51074455
commit
fbd2e4469e
@ -490,7 +490,7 @@ R_API int r_utf8_decode(const ut8 *ptr, int ptrlen, RRune *ch) {
|
||||
if (ptrlen < 1) {
|
||||
return 0;
|
||||
}
|
||||
if (ptrlen > 0 && ptr[0] < 0x80) {
|
||||
if (ptr[0] < 0x80) {
|
||||
if (ch) {
|
||||
*ch = (ut32)ptr[0];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user