From c0bc9038519661df78c0b05b57a195048cf7f4e0 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 16 Mar 2022 08:30:07 +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