diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2017-11-28 14:43:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 14:43:38 -0800 |
commit | b7b3f72dac0a40375e85f2735670e0bc134a80cf (patch) | |
tree | ea8260050713e25c7c10d16019185e94061f0342 | |
parent | d9475e55cc57703fe9286d2236430b91c3608952 (diff) |
Fix uninitialized variable
-rw-r--r-- | src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc b/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc index 6bbb4d5739..390da52e2f 100644 --- a/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc +++ b/src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc @@ -139,7 +139,7 @@ static bool parse_user_agent(grpc_mdelem md) { bool grpc_objc_specifier_seen = false; bool cronet_specifier_seen = false; char *major_version_str = user_agent_str, *minor_version_str; - long major_version, minor_version; + long major_version = 0, minor_version = 0; char* head = strtok(user_agent_str, " "); while (head != nullptr) { |