Index: ipc/ipc_message_utils.cc |
diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc |
index 5216a8602eb680119fdade818f92217fd7e0ba3c..7c3ef66b05228cee10af5272334876d8b23eba85 100644 |
--- a/ipc/ipc_message_utils.cc |
+++ b/ipc/ipc_message_utils.cc |
@@ -455,7 +455,7 @@ void ParamTraits<LogData>::Write(Message* m, const param_type& p) { |
} |
bool ParamTraits<LogData>::Read(const Message* m, void** iter, param_type* r) { |
- int type; |
+ int type = 0; // clang pr9122 |
bool result = |
ReadParam(m, iter, &r->channel) && |
ReadParam(m, iter, &r->routing_id) && |
@@ -465,7 +465,8 @@ bool ParamTraits<LogData>::Read(const Message* m, void** iter, param_type* r) { |
ReadParam(m, iter, &r->receive) && |
ReadParam(m, iter, &r->dispatch) && |
ReadParam(m, iter, &r->params); |
- r->type = static_cast<uint16>(type); |
+ if (result) // real (but uninteresting) fix |
+ r->type = static_cast<uint16>(type); |
return result; |
} |