Default nil or empty version string to CFBundleVersion

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1470 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
changluo@google.com 2015-07-10 01:29:50 +00:00
parent fed2e33bd1
commit 28c9c9b82c

View file

@ -341,7 +341,7 @@ bool Breakpad::ExtractParameters(NSDictionary *parameters) {
} }
} }
if (!version) if (!version.length) // Default nil or empty string to CFBundleVersion
version = [parameters objectForKey:@"CFBundleVersion"]; version = [parameters objectForKey:@"CFBundleVersion"];
if (!vendor) { if (!vendor) {