]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
virt plugin: Check for virt_notif_thread_init() success 3149/head
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 13 May 2019 07:31:39 +0000 (14:31 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Mon, 13 May 2019 07:31:39 +0000 (14:31 +0700)
src/virt.c

index 62e6089c92833ec75a75a080cb7e5bcad3968164..cd82dcad6da7965e61b37c9f2a8fde32c8bc5e7f 100644 (file)
@@ -2386,7 +2386,8 @@ static int lv_init(void) {
     return -1;
 
   if (!persistent_notification)
-    virt_notif_thread_init(&notif_thread);
+    if (virt_notif_thread_init(&notif_thread) != 0)
+      return -1;
 
   lv_connect();