Fix uninitialized variable

pull/13531/head
Muxi Yan 7 years ago committed by GitHub
parent d9475e55cc
commit b7b3f72dac
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 grpc_objc_specifier_seen = false;
bool cronet_specifier_seen = false; bool cronet_specifier_seen = false;
char *major_version_str = user_agent_str, *minor_version_str; 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, " "); char* head = strtok(user_agent_str, " ");
while (head != nullptr) { while (head != nullptr) {

Loading…
Cancel
Save