Ensure configuration options correctly initialised in repmgrd.c

Per GitHub #150.

Also remove unused variable.
This commit is contained in:
Ian Barwick
2016-06-27 11:21:54 +09:00
parent fbb65b4a43
commit f1ee6e19b6
3 changed files with 9 additions and 5 deletions

View File

@@ -240,6 +240,8 @@ parse_config(t_configuration_options *options)
options->witness_repl_nodes_sync_interval_secs = 30;
memset(options->event_notification_command, 0, sizeof(options->event_notification_command));
options->event_notifications.head = NULL;
options->event_notifications.tail = NULL;
options->tablespace_mapping.head = NULL;
options->tablespace_mapping.tail = NULL;