Browse code

Fix missing initialization of `auto_close`

Natasha Kerensikova authored on26/04/2016 22:14:19
Showing1 changed files
... ...
@@ -524,6 +524,7 @@ tick_handler(struct tm *tick_time, TimeUnits units_changed) {
524 524
 static void
525 525
 init(void) {
526 526
 	cfg_auto_close = persist_read_bool(MSG_KEY_CFG_AUTO_CLOSE);
527
+	auto_close = cfg_auto_close;
527 528
 
528 529
 	app_message_register_inbox_received(inbox_received_handler);
529 530
 	app_message_register_outbox_failed(outbox_failed_handler);