From 4b77b733699f9c39b517a124da737c018b1164e2 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Thu, 1 Jul 2021 11:25:39 -0400 Subject: [PATCH] ObjC: Fix logic error in exception loading. --- src/google/protobuf/compiler/objectivec/objectivec_helpers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc b/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc index ed5ea929ec..ef849c2371 100644 --- a/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc +++ b/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc @@ -126,7 +126,7 @@ bool PrefixModeStorage::is_package_exempted(const std::string& package) { if (exceptions_.empty() && !exception_path_.empty()) { std::string error_str; SimpleLineCollector collector(&exceptions_); - if (ParseSimpleFile(exception_path_, &collector, &error_str)) { + if (!ParseSimpleFile(exception_path_, &collector, &error_str)) { if (error_str.empty()) { error_str = std::string("protoc:0: warning: Failed to parse") + std::string(" package prefix exceptions file: ")