summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 19:34:11 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 19:34:11 +0000
commite02e32734ca4dbdc9296e37433ca96f616892868 (patch)
tree1dcab47e1b3e8702f3f75cf061eb22a3fb0cff09 /remoting
parent77271a04f66a5d368b5aa7f3e044748343a35c29 (diff)
downloadchromium_src-e02e32734ca4dbdc9296e37433ca96f616892868.zip
chromium_src-e02e32734ca4dbdc9296e37433ca96f616892868.tar.gz
chromium_src-e02e32734ca4dbdc9296e37433ca96f616892868.tar.bz2
Coverity: Fix undefined assignment evaluation order in remoting::Capturer::FinishCapture.
CID=10878 BUG=none TEST=builds Review URL: http://codereview.chromium.org/2847010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50012 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/capturer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/capturer.cc b/remoting/host/capturer.cc
index 789723b..331f9c7 100644
--- a/remoting/host/capturer.cc
+++ b/remoting/host/capturer.cc
@@ -43,7 +43,7 @@ void Capturer::FinishCapture(Task* done_task) {
delete done_task;
// Select the next buffer to be the current buffer.
- current_buffer_ = ++current_buffer_ % kNumBuffers;
+ current_buffer_ = (current_buffer_ + 1) % kNumBuffers;
}
} // namespace remoting