Index: chrome/default_plugin/plugin_impl_mac.mm |
diff --git a/chrome/default_plugin/plugin_impl_mac.mm b/chrome/default_plugin/plugin_impl_mac.mm |
index 927c32f940d2271b07be84b8a9b48fa0dec250e2..a7c120cf1ac20f2ab5c9b0b270246c43ba834b67 100644 |
--- a/chrome/default_plugin/plugin_impl_mac.mm |
+++ b/chrome/default_plugin/plugin_impl_mac.mm |
@@ -42,7 +42,7 @@ bool PluginInstallerImpl::Initialize(void* module_handle, NPP instance, |
DVLOG(1) << __FUNCTION__ << " MIME Type : " << mime_type; |
DCHECK(instance != NULL); |
- if (mime_type == NULL || strlen(mime_type) == 0) { |
+ if (mime_type == NULL || *mime_type == '\0') { |
DLOG(WARNING) << __FUNCTION__ << " Invalid parameters passed in"; |
NOTREACHED(); |
return false; |