Index: net/spdy/spdy_http_utils.cc |
diff --git a/net/spdy/spdy_http_utils.cc b/net/spdy/spdy_http_utils.cc |
index 41647c1729fc26c920374e564de118c34c59c007..49fb8ca32b5c7676aedcd09fc6d5bcd883301bf3 100644 |
--- a/net/spdy/spdy_http_utils.cc |
+++ b/net/spdy/spdy_http_utils.cc |
@@ -188,8 +188,9 @@ GURL GetUrlFromHeaderBlock(const SpdyHeaderBlock& headers, |
if (it != headers.end()) |
path = it->second; |
- std::string url = (scheme.empty() || host_port.empty() || path.empty()) |
- ? "" : scheme + "://" + host_port + path; |
+ std::string url = (scheme.empty() || host_port.empty() || path.empty()) |
+ ? std::string() |
+ : scheme + "://" + host_port + path; |
return GURL(url); |
} |