Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1285)

Unified Diff: net/socket/client_socket_pool_base.h

Issue 149149: Fix up some code not to set off coverity warnings. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/socket/socket_test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_pool_base.h
diff --git a/net/socket/client_socket_pool_base.h b/net/socket/client_socket_pool_base.h
index b7df105bf7a9b5a43a1b74d2557ccd437a002f8a..54e939666707f37d7c2388700a52b27b16febcf2 100644
--- a/net/socket/client_socket_pool_base.h
+++ b/net/socket/client_socket_pool_base.h
@@ -92,7 +92,11 @@ class ClientSocketPoolBase
// ERR_IO_PENDING.
struct Request {
// HostResolver::RequestInfo has no default constructor, so fudge something.
- Request() : resolve_info(std::string(), 0) {}
+ Request()
+ : handle(NULL),
+ callback(NULL),
+ priority(0),
+ resolve_info(std::string(), 0) {}
Request(ClientSocketHandle* handle,
CompletionCallback* callback,
« no previous file with comments | « no previous file | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698