Chromium Code Reviews| Index: webkit/glue/webkitplatformsupport_impl.cc |
| diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc |
| index bfa6ec04f871c0d6ad6772dece793af15261d94c..e928d5daf31dc44edd51ca7ea4a2183ba56a28bb 100644 |
| --- a/webkit/glue/webkitplatformsupport_impl.cc |
| +++ b/webkit/glue/webkitplatformsupport_impl.cc |
| @@ -424,7 +424,7 @@ WebData WebKitPlatformSupportImpl::loadResource(const char* name) { |
| // Some clients will call into this method with an empty |name| when they have |
| // optional resources. For example, the PopupMenuChromium code can have icons |
| // for some Autofill items but not for others. |
| - if (!strlen(name)) |
|
wtc
2011/10/21 19:18:19
Some strlen implementations may "helpfully" allow
|
| + if (*name == '\0') |
| return WebData(); |
| // Check the name prefix to see if it's an audio resource. |