Index: dart/runtime/bin/eventhandler.cc |
diff --git a/dart/runtime/bin/eventhandler.cc b/dart/runtime/bin/eventhandler.cc |
index 1327dff79454fbaa7b930910614afe27ec648de9..542602f6bde2bac4b8dec8c5393dd158d2acfec6 100644 |
--- a/dart/runtime/bin/eventhandler.cc |
+++ b/dart/runtime/bin/eventhandler.cc |
@@ -12,6 +12,8 @@ |
namespace dart { |
namespace bin { |
+static const intptr_t kTimerId = -1; |
+static const intptr_t kInvalidId = -2; |
void TimeoutQueue::UpdateTimeout(Dart_Port port, int64_t timeout) { |
// Find port if present. |
@@ -83,7 +85,7 @@ EventHandlerImplementation* EventHandler::delegate() { |
*/ |
void FUNCTION_NAME(EventHandler_SendData)(Dart_NativeArguments args) { |
Dart_Handle sender = Dart_GetNativeArgument(args, 0); |
- intptr_t id; |
+ intptr_t id = kInvalidId; |
if (Dart_IsNull(sender)) { |
id = kTimerId; |
} else { |