Commit 1963159f authored by unknown's avatar unknown

Initialize guarded_instance to NULL in constuctor. Avoid looping over

uninitialized list of guarded instances.


server-tools/instance-manager/guardian.cc:
  Initialize guarded_instance to NULL in constuctor. Avoid looping over
  uninitialized list of guarded instances
parent e669bcd6
......@@ -67,6 +67,7 @@ Guardian::Guardian(Thread_registry *thread_registry_arg,
monitoring_interval(monitoring_interval_arg),
thread_registry(thread_registry_arg),
instance_map(instance_map_arg),
guarded_instances(0),
shutdown_requested(FALSE)
{
pthread_mutex_init(&LOCK_guardian, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment