diff options
| -rw-r--r-- | lldb/source/Host/macosx/Host.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 7642a3e847d..47a9b0aac6b 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -1044,7 +1044,7 @@ Host::GetOSVersion { CFStringRef product_version_cfstr = (CFStringRef) product_version_value; product_version_str = CFStringGetCStringPtr(product_version_cfstr, kCFStringEncodingUTF8); - if (product_version_str == NULL) { + if (product_version_str != NULL) { if (CFStringGetCString(product_version_cfstr, buffer, 256, kCFStringEncodingUTF8)) product_version_str = buffer; } |

