Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
8524d44b
Commit
8524d44b
authored
Feb 06, 2010
by
Rémi Denis-Courmont
Browse files
IsUTF8: redumdant check for nul
parent
dd1e8bad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/text/unicode.c
View file @
8524d44b
...
...
@@ -317,8 +317,7 @@ static char *CheckUTF8( char *str, char rep )
assert
(
cp
<
(
1
<<
26
));
c
=
ptr
[
i
];
if
((
c
==
'\0'
)
// unexpected end of string
||
((
c
>>
6
)
!=
2
))
// not a continuation byte
if
((
c
>>
6
)
!=
2
)
// not a continuation byte
goto
error
;
cp
=
(
cp
<<
6
)
|
(
ptr
[
i
]
&
0x3f
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment