Browse Source

usbutils initialise close key/sem

Kano 12 years ago
parent
commit
410fba7e04
1 changed files with 2 additions and 2 deletions
  1. 2 2
      usbutils.c

+ 2 - 2
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);