From bfe4b0589fc6db1b109a4ee7b4b08843ea768af3 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Mon, 29 Nov 2021 13:44:21 +0900 Subject: [PATCH] ctl/hwdep/rawmidi: fix uninitialized warning This commit fixes uninitialized warnings. Signed-off-by: Takashi Sakamoto --- src/hwdep/query.c | 2 +- src/rawmidi/query.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hwdep/query.c b/src/hwdep/query.c index d86c2a0..3298c19 100644 --- a/src/hwdep/query.c +++ b/src/hwdep/query.c @@ -143,7 +143,7 @@ void alsahwdep_get_device_id_list(guint card_id, guint **entries, { struct udev_enumerate *enumerator = NULL; unsigned int length; - char *prefix; + char *prefix = NULL; struct udev_list_entry *entry, *entry_list; unsigned int count; unsigned int index; diff --git a/src/rawmidi/query.c b/src/rawmidi/query.c index 46b624c..11a9f2e 100644 --- a/src/rawmidi/query.c +++ b/src/rawmidi/query.c @@ -143,7 +143,7 @@ void alsarawmidi_get_device_id_list(guint card_id, guint **entries, { struct udev_enumerate *enumerator = NULL; unsigned int length; - char *prefix; + char *prefix = NULL; struct udev_list_entry *entry, *entry_list; unsigned int count; unsigned int index; -- 2.47.3