Bug 58221 don't use strlen to check if a string is of length 0
patch by aaronl@vitelus.com r=timeless sr=bz git-svn-id: svn://10.0.0.236/trunk@133999 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -228,7 +228,7 @@ nsresult nsPluginFile::GetPluginInfo(nsPluginInfo& info)
|
||||
// get name and description of this plugin
|
||||
version_info vinfo;
|
||||
if (appinfo.GetVersionInfo(&vinfo, B_APP_VERSION_KIND) == B_OK
|
||||
&& strlen(vinfo.short_info) > 0) {
|
||||
&& *vinfo.short_info) {
|
||||
// XXX convert UTF-8 2byte chars to 1 byte chars, to avoid string corruption
|
||||
info.fName = ToNewCString(NS_ConvertUTF8toUCS2(vinfo.short_info));
|
||||
info.fDescription = ToNewCString(NS_ConvertUTF8toUCS2(vinfo.long_info));
|
||||
|
||||
Reference in New Issue
Block a user