From 26e91a550e76195d3759af89122c45a89ce76f8b Mon Sep 17 00:00:00 2001 From: Ryan Thompson Date: Sat, 10 Aug 2024 18:18:57 -0700 Subject: [PATCH] libbladeRF: test: fix gain compare dev init --- host/libraries/libbladeRF_test/test_gain_compare/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/libraries/libbladeRF_test/test_gain_compare/src/main.c b/host/libraries/libbladeRF_test/test_gain_compare/src/main.c index 631507c6d..d6e1310ba 100644 --- a/host/libraries/libbladeRF_test/test_gain_compare/src/main.c +++ b/host/libraries/libbladeRF_test/test_gain_compare/src/main.c @@ -39,7 +39,7 @@ static int init_sync(struct bladerf *dev, const size_t NUM_CHANNELS, bladerf_sam int main(int argc, char *argv[]) { int status; - struct bladerf *dev; + struct bladerf *dev = NULL; char *devstr = NULL; bladerf_sample_rate samp_rate = 2e6;