summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 21:38:51 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 21:38:51 +0000
commit5dcd865fdfff77ecc2d83d093018bba4e5b798e3 (patch)
tree4e88014e1d53ccbf10da62ad05f67e8f4c7edad7 /base
parentf003cf893b9192ebab8ceda854aea8f728d4f5eb (diff)
downloadchromium_src-5dcd865fdfff77ecc2d83d093018bba4e5b798e3.zip
chromium_src-5dcd865fdfff77ecc2d83d093018bba4e5b798e3.tar.gz
chromium_src-5dcd865fdfff77ecc2d83d093018bba4e5b798e3.tar.bz2
Fix DCHECK that thinks fd = 0 is invalid.
BUG=25762 TEST=none Review URL: http://codereview.chromium.org/466023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33725 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/message_pump_libevent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/message_pump_libevent.cc b/base/message_pump_libevent.cc
index 4e2df5f..04ea2ab 100644
--- a/base/message_pump_libevent.cc
+++ b/base/message_pump_libevent.cc
@@ -149,7 +149,7 @@ bool MessagePumpLibevent::WatchFileDescriptor(int fd,
Mode mode,
FileDescriptorWatcher *controller,
Watcher *delegate) {
- DCHECK(fd > 0);
+ DCHECK_GE(fd, 0);
DCHECK(controller);
DCHECK(delegate);
DCHECK(mode == WATCH_READ || mode == WATCH_WRITE || mode == WATCH_READ_WRITE);