diff options
author | 2017-11-28 22:17:10 -0800 | |
---|---|---|
committer | 2017-11-28 22:17:10 -0800 | |
commit | 56687c1a79633418e13bb424ee926c418a3614db (patch) | |
tree | a76f11eae399fb22fc32129ebef956922035a3d7 /src | |
parent | 0e142d4742bc4449c5fcd4216692fb2f9cb2b37a (diff) | |
parent | b7b3f72dac0a40375e85f2735670e0bc134a80cf (diff) |
Merge pull request #13531 from grpc/fix-workaround-var-init
Fix uninitialized variable in workaround_cronet_compression_filter
Diffstat (limited to 'src')
-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) { |