Fix Build: address some maybe-uninitialized warnings in folly/io/async/EventBase.cpp
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 14 Oct 2015 00:28:55 +0000 (17:28 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Wed, 14 Oct 2015 01:20:19 +0000 (18:20 -0700)
Summary: [Folly] Fix Build: address some `maybe-uninitialized` warnings in `folly/io/async/EventBase.cpp`.

Reviewed By: @meyering

Differential Revision: D2535753

fb-gh-sync-id: ff32f6957675d3b6d0267b1a59fb0c3aac4fe86e

folly/io/async/EventBase.cpp

index b3a12a4af133556bc816ad870dd2b07fef155e9d..2ec1e90dcc5861e3a1a3a56363d1dff8b250c105 100644 (file)
@@ -312,7 +312,7 @@ bool EventBase::loopBody(int flags) {
 
   // time-measurement variables.
   std::chrono::steady_clock::time_point prev;
-  int64_t idleStart;
+  int64_t idleStart = 0;
   int64_t busy;
   int64_t idle;