Browse Source

fix: initialize variables

Stefan Siegl 9 years ago
parent
commit
97ade17ef9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      v8js_timer.cc

+ 2 - 1
v8js_timer.cc

@@ -40,7 +40,8 @@ static void v8js_timer_interrupt_handler(v8::Isolate *isolate, void *data) { /*
 
 
 	v8::Locker locker(isolate);
 	v8::Locker locker(isolate);
 	v8::HeapStatistics hs;
 	v8::HeapStatistics hs;
-	bool send_notification, has_sent_notification;
+	bool send_notification = false;
+	bool has_sent_notification = false;
 
 
 	do {
 	do {
 		if (send_notification) {
 		if (send_notification) {