X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmic.c;h=570da51bcfd56c20296effdd64e570e3ff9eb6b9;hb=c6557cb8950f50a41a1decfb34439b060e2fd371;hp=ec92c8bee0b0bf8881b9eeee3d71bcbcd0656681;hpb=9a11a66bd52e0bcbd4c31576bbc4d2a6439edf6d;p=collectd.git diff --git a/src/mic.c b/src/mic.c index ec92c8be..570da51b 100644 --- a/src/mic.c +++ b/src/mic.c @@ -398,7 +398,9 @@ static int mic_read (void) static int mic_shutdown (void) { if (mic_handle) - MicCloseAPI(&mic_handle); + MicCloseAPI(&mic_handle); + mic_handle = NULL; + return (0); }