style fix: strlen(str) == 0 --> *str == 0
This commit is contained in:
parent
cd7b5f7f78
commit
a837649711
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ static void write_utf8_cstr_to_stdout(const char * str, bool & invalid_utf8) {
|
|||
|
||||
// MultiByteToWideChar reports an error if str is empty, don't report
|
||||
// them as invalid_utf8.
|
||||
if (strlen(str) == 0) {
|
||||
if (*str == 0) {
|
||||
return;
|
||||
}
|
||||
int length_needed = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, strlen(str), NULL, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue