Commit 410fba7e04c0c1a94551c81e28cb947c95f96bf0

Kano 2013-06-17T22:20:27

usbutils initialise close key/sem

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/usbutils.c b/usbutils.c
index 96c779c..88cbadf 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);