Skip to content
Snippets Groups Projects
Commit 275a02c3 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Small fix

parent d423f3c2
No related branches found
No related tags found
No related merge requests found
......@@ -98,8 +98,8 @@ grpc_uri *grpc_uri_parse(const char *uri_text, int suppress_errors) {
if (uri_text[scheme_end + 1] == '/' && uri_text[scheme_end + 2] == '/') {
authority_begin = scheme_end + 3;
for (i = authority_begin; uri_text[i] != 0; i++) {
if (uri_text[i] == '/' && authority_end == -1) {
for (i = authority_begin; uri_text[i] != 0 && authority_end == -1; i++) {
if (uri_text[i] == '/') {
authority_end = i;
}
if (uri_text[i] == '?') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment