1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
From 33180b117aa6b82fec1bcf502bca83bfea78dff3 Mon Sep 17 00:00:00 2001
From: AlexandreRouma <alexandre.rouma@gmail.com>
Date: Thu, 1 Sep 2022 21:31:59 +0200
Subject: [PATCH 15/46] some more bugfix
---
libairspyhf/src/airspyhf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libairspyhf/src/airspyhf.c b/libairspyhf/src/airspyhf.c
index b95b4fd..a40506d 100644
--- a/libairspyhf/src/airspyhf.c
+++ b/libairspyhf/src/airspyhf.c
@@ -769,6 +769,7 @@ static void airspyhf_open_device_fd(airspyhf_device_t* device,
if (result != 0)
{
libusb_close(device->usb_device);
+ device->usb_device = NULL;
*ret = AIRSPYHF_ERROR;
return;
}
@@ -777,6 +778,7 @@ static void airspyhf_open_device_fd(airspyhf_device_t* device,
if (result != 0)
{
libusb_close(device->usb_device);
+ device->usb_device = NULL;
*ret = AIRSPYHF_ERROR;
return;
}
@@ -785,6 +787,7 @@ static void airspyhf_open_device_fd(airspyhf_device_t* device,
if (result != 0)
{
libusb_close(device->usb_device);
+ device->usb_device = NULL;
*ret = AIRSPYHF_ERROR;
return;
}
--
2.47.3
|