| Index: ios/web/public/user_agent.mm
|
| diff --git a/ios/web/public/user_agent.mm b/ios/web/public/user_agent.mm
|
| index 24fb64612c0783532c012083817eb69981515b39..29ac160cefb7718d7ef6d9578686696ded7654ab 100644
|
| --- a/ios/web/public/user_agent.mm
|
| +++ b/ios/web/public/user_agent.mm
|
| @@ -108,9 +108,9 @@ std::string BuildUserAgentFromProduct(const std::string& product) {
|
| int mib[2] = {CTL_KERN, KERN_OSVERSION};
|
| unsigned int namelen = sizeof(mib) / sizeof(mib[0]);
|
| size_t bufferSize = 0;
|
| - sysctl(mib, namelen, NULL, &bufferSize, NULL, 0);
|
| + sysctl(mib, namelen, nullptr, &bufferSize, nullptr, 0);
|
| char kernel_version[bufferSize];
|
| - int result = sysctl(mib, namelen, kernel_version, &bufferSize, NULL, 0);
|
| + int result = sysctl(mib, namelen, kernel_version, &bufferSize, nullptr, 0);
|
| DCHECK(result == 0);
|
|
|
| UAVersions ua_versions = GetUAVersionsForCurrentOS();
|
|
|