Merge pull request #13531 from grpc/fix-workaround-var-init

Fix uninitialized variable in workaround_cronet_compression_filter
pull/13543/head
Muxi Yan 7 years ago committed by GitHub
commit 56687c1a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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) {

Loading…
Cancel
Save