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

Unified Diff: remoting/client/rectangle_update_decoder.cc

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
Index: remoting/client/rectangle_update_decoder.cc
diff --git a/remoting/client/rectangle_update_decoder.cc b/remoting/client/rectangle_update_decoder.cc
index 09e67a28e6a19efc4e58210a4fd03a5c6e1b8edb..072195f5e432cefe44d93513461fceca7e480c26 100644
--- a/remoting/client/rectangle_update_decoder.cc
+++ b/remoting/client/rectangle_update_decoder.cc
@@ -25,6 +25,8 @@ RectangleUpdateDecoder::RectangleUpdateDecoder(MessageLoop* message_loop,
consumer_(consumer),
frame_is_new_(false),
frame_is_consuming_(false) {
+ memset(&clip_rect_, 0, sizeof(clip_rect_));
+ memset(&initial_screen_size_, 0, sizeof(initial_screen_size_));
Wez 2011/12/20 20:08:02 Similarly, SkIRect::MakeEmpty() for |clip_rect_| a
James Hawkins 2011/12/20 20:48:51 Done.
}
RectangleUpdateDecoder::~RectangleUpdateDecoder() {

Powered by Google App Engine
This is Rietveld 408576698