From 753ded5ac8d32f33bd8e92a6460d045741f2d641 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Fri, 21 Mar 2025 15:10:22 +0100 Subject: [PATCH] try to fix errors --- src/fm95.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/fm95.c b/src/fm95.c index d672811..36c54ec 100644 --- a/src/fm95.c +++ b/src/fm95.c @@ -120,10 +120,12 @@ void show_help(char *name) { int main(int argc, char **argv) { show_version(); - pa_simple *mpx_device; - pa_simple *rds_device; - pa_simple *rds2_device; - pa_simple *sca_device; + pa_simple *mpx_device = NULL + pa_simple *rds_device = NULL + pa_simple *rds2_device = NULL; + pa_simple *sca_device = NULL; + + pa_simple *input_device; pa_simple *output_device; float clipper_threshold = DEFAULT_CLIPPER_THRESHOLD; @@ -288,7 +290,7 @@ int main(int argc, char **argv) { printf("Connecting to input device... (%s)\n", audio_input_device); - pa_simple *input_device = pa_simple_new( + input_device = pa_simple_new( NULL, "fm95", PA_STREAM_RECORD,