Chromium Code Reviews| Index: base/linux_util.cc |
| diff --git a/base/linux_util.cc b/base/linux_util.cc |
| index 660ea1985c36f276d49235ab0754757a75226f0b..bcddbdd78911ebc876ff11e484ab263c35a772d3 100644 |
| --- a/base/linux_util.cc |
| +++ b/base/linux_util.cc |
| @@ -231,7 +231,7 @@ bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode) { |
| continue; |
| } |
| - ino_t fd_inode; |
| + ino_t fd_inode = (ino_t)-1; |
|
willchan no longer on Chromium
2013/06/04 21:34:36
Please use a static_cast<> here instead.
|
| if (ProcPathGetInode(&fd_inode, buf)) { |
| if (fd_inode == socket_inode) { |
| if (already_found) { |