Index: chrome/default_plugin/plugin_impl_gtk.cc |
diff --git a/chrome/default_plugin/plugin_impl_gtk.cc b/chrome/default_plugin/plugin_impl_gtk.cc |
index 378e80d19e65558122d1ed286638231c84eab75f..2dcedf3cdeee40731402ac5ddcd343982894c56a 100644 |
--- a/chrome/default_plugin/plugin_impl_gtk.cc |
+++ b/chrome/default_plugin/plugin_impl_gtk.cc |
@@ -40,7 +40,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; |