tools: acrn-manager: init vmmngr_head with LIST_HEAD_INITIALIZER
To fix the issue that vmmngr_head may be used uninitialized.
@@ -47,7 +47,7 @@ static int check_dir(const char *path)
/* List head of all vm */
static pthread_mutex_t vmmngr_mutex = PTHREAD_MUTEX_INITIALIZER;
-struct vmmngr_list_struct vmmngr_head;
+struct vmmngr_list_struct vmmngr_head = LIST_HEAD_INITIALIZER(vmmngr_head);
static unsigned long update_count = 0;
struct vmmngr_struct *vmmngr_find(const char *name)
