From b5bd82e60567950fe351027dc3e60bc5559619a0 Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Mon, 8 Jun 2015 15:54:40 -0400 Subject: [PATCH] plugins/fmcomms1.c: explicitly initialize fft plot Fixes a maybe-uninitialized warning that causes a compile time failure due to -Wall and -Werror in CFLAGS. Signed-off-by: Tim Harder --- plugins/fmcomms1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fmcomms1.c b/plugins/fmcomms1.c index d058d813b..fda8d290d 100644 --- a/plugins/fmcomms1.c +++ b/plugins/fmcomms1.c @@ -653,7 +653,7 @@ static void display_cal(void *ptr) bool show = false; const char *device_ref; int ret, attempt = 0; - OscPlot *fft_plot; + OscPlot *fft_plot = NULL; double ln10 = log(10.0); device_ref = plugin_get_device_by_reference("cf-ad9643-core-lpc");