From: Pavel Rochnyack Date: Mon, 13 May 2019 07:31:39 +0000 (+0700) Subject: virt plugin: Check for virt_notif_thread_init() success X-Git-Tag: collectd-5.9.0~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3149%2Fhead;p=thirdparty%2Fcollectd.git virt plugin: Check for virt_notif_thread_init() success --- diff --git a/src/virt.c b/src/virt.c index 62e6089c9..cd82dcad6 100644 --- a/src/virt.c +++ b/src/virt.c @@ -2386,7 +2386,8 @@ static int lv_init(void) { return -1; if (!persistent_notification) - virt_notif_thread_init(¬if_thread); + if (virt_notif_thread_init(¬if_thread) != 0) + return -1; lv_connect();