summaryrefslogtreecommitdiffstats
path: root/base/mac_util.mm
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 16:25:45 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-12 16:25:45 +0000
commit0f7bc44780e2c7894efd198ef2ac2596c0e7a058 (patch)
treea06d55f1a4663de5bc0166568252523216eb9220 /base/mac_util.mm
parentbaac49a8766f3b5030e5d9889abcef795cb1091b (diff)
downloadchromium_src-0f7bc44780e2c7894efd198ef2ac2596c0e7a058.zip
chromium_src-0f7bc44780e2c7894efd198ef2ac2596c0e7a058.tar.gz
chromium_src-0f7bc44780e2c7894efd198ef2ac2596c0e7a058.tar.bz2
Ensure that CreatorCodeForCFBundleRef returns the "unknown" creator code from
initialized data even if the system is totally unable to service the request. BUG=19000 Review URL: http://codereview.chromium.org/164388 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23185 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mac_util.mm')
-rw-r--r--base/mac_util.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/mac_util.mm b/base/mac_util.mm
index aebba8f..6711257 100644
--- a/base/mac_util.mm
+++ b/base/mac_util.mm
@@ -68,7 +68,7 @@ void SetOverrideAppBundlePath(const FilePath& file_path) {
}
OSType CreatorCodeForCFBundleRef(CFBundleRef bundle) {
- OSType creator;
+ OSType creator = kUnknownType;
CFBundleGetPackageInfo(bundle, NULL, &creator);
return creator;
}