mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
fix NULL problem for IsUTF8String
This commit is contained in:
parent
cc3661d15e
commit
830aa29282
@ -487,6 +487,8 @@ makeResourceName (RDF_Resource node)
|
||||
|
||||
PRBool IsUTF8String(const char* utf8)
|
||||
{
|
||||
if(NULL == utf8)
|
||||
return TRUE;
|
||||
return IsUTF8Text(utf8, strlen(utf8));
|
||||
}
|
||||
PRBool IsUTF8Text(const char* utf8, int32 len)
|
||||
|
Loading…
Reference in New Issue
Block a user