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:
timeless%mozdev.org
2002-11-17 05:16:49 +00:00
parent 6063118db9
commit 99731b5e88
55 changed files with 142 additions and 139 deletions

View File

@@ -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));