Repository: mesos Updated Branches: refs/heads/master 3e7758c8b -> 8f3955b54
Updated an implicit NULL check to be explicit. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/12087138 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/12087138 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/12087138 Branch: refs/heads/master Commit: 1208713887bef2e9e66dbd5efd85d54673ccf202 Parents: 3e7758c Author: Benjamin Mahler <[email protected]> Authored: Tue Sep 1 14:59:36 2015 -0700 Committer: Benjamin Mahler <[email protected]> Committed: Tue Sep 1 14:59:36 2015 -0700 ---------------------------------------------------------------------- src/linux/perf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/12087138/src/linux/perf.cpp ---------------------------------------------------------------------- diff --git a/src/linux/perf.cpp b/src/linux/perf.cpp index dac7061..beb6854 100644 --- a/src/linux/perf.cpp +++ b/src/linux/perf.cpp @@ -402,7 +402,8 @@ Try<hashmap<string, mesos::PerfStatistics>> parse(const string& output) statistics[cgroup].GetReflection(); const google::protobuf::FieldDescriptor* field = statistics[cgroup].GetDescriptor()->FindFieldByName(event); - if (!field) { + + if (field == NULL) { return Error("Unexpected perf output at line: " + line); }
