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

Side by Side Diff: ipc/ipc_channel_posix.cc

Issue 7217017: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ipc/ipc_channel_posix.h" 5 #include "ipc/ipc_channel_posix.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 server_listen_pipe_(-1), 302 server_listen_pipe_(-1),
303 pipe_(-1), 303 pipe_(-1),
304 client_pipe_(-1), 304 client_pipe_(-1),
305 #if defined(IPC_USES_READWRITE) 305 #if defined(IPC_USES_READWRITE)
306 fd_pipe_(-1), 306 fd_pipe_(-1),
307 remote_fd_pipe_(-1), 307 remote_fd_pipe_(-1),
308 #endif // IPC_USES_READWRITE 308 #endif // IPC_USES_READWRITE
309 pipe_name_(channel_handle.name), 309 pipe_name_(channel_handle.name),
310 listener_(listener), 310 listener_(listener),
311 must_unlink_(false) { 311 must_unlink_(false) {
312 memset(input_buf_, 0, sizeof(input_buf_));
313 memset(input_cmsg_buf_, 0, sizeof(input_cmsg_buf_));
312 if (!CreatePipe(channel_handle)) { 314 if (!CreatePipe(channel_handle)) {
313 // The pipe may have been closed already. 315 // The pipe may have been closed already.
314 const char *modestr = (mode_ & MODE_SERVER_FLAG) ? "server" : "client"; 316 const char *modestr = (mode_ & MODE_SERVER_FLAG) ? "server" : "client";
315 // The pipe may have been closed already. 317 // The pipe may have been closed already.
316 LOG(WARNING) << "Unable to create pipe named \"" << channel_handle.name 318 LOG(WARNING) << "Unable to create pipe named \"" << channel_handle.name
317 << "\" in " << modestr << " mode"; 319 << "\" in " << modestr << " mode";
318 } 320 }
319 } 321 }
320 322
321 Channel::ChannelImpl::~ChannelImpl() { 323 Channel::ChannelImpl::~ChannelImpl() {
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 1193
1192 bool Channel::GetClientEuid(uid_t* client_euid) const { 1194 bool Channel::GetClientEuid(uid_t* client_euid) const {
1193 return channel_impl_->GetClientEuid(client_euid); 1195 return channel_impl_->GetClientEuid(client_euid);
1194 } 1196 }
1195 1197
1196 void Channel::ResetToAcceptingConnectionState() { 1198 void Channel::ResetToAcceptingConnectionState() {
1197 channel_impl_->ResetToAcceptingConnectionState(); 1199 channel_impl_->ResetToAcceptingConnectionState();
1198 } 1200 }
1199 1201
1200 } // namespace IPC 1202 } // namespace IPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698