From 410fba7e04c0c1a94551c81e28cb947c95f96bf0 Mon Sep 17 00:00:00 2001 From: Kano Date: Mon, 17 Jun 2013 22:20:27 +1000 Subject: [PATCH] usbutils initialise close key/sem --- usbutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usbutils.c b/usbutils.c index 96c779cc..88cbadff 100644 --- a/usbutils.c +++ b/usbutils.c @@ -3303,8 +3303,8 @@ fila: return; #else char name[64]; - key_t *key; - int *sem; + key_t *key = NULL; + int *sem = NULL; sprintf(name, "/tmp/cgminer-usb-%d-%d", (int)bus_number, (int)device_address);