tools: acrn-manager: init vmmngr_head with LIST_HEAD_INITIALIZER

To fix the issue that vmmngr_head may be used uninitialized.

Tracked-On: #1157
Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
Yan, Like 2018-09-19 13:37:52 +08:00 committed by lijinxia
parent 7b0b67df72
commit e6c3ea3b3b
1 changed files with 1 additions and 1 deletions

View File

@ -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)