From b59c07ea334a11844fb98c60110ada62e69f653d Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Sat, 24 Apr 2021 09:28:42 +0100 Subject: [PATCH] mixer: name can be null w/OpenBSD. Without further investigation checking for NULL here fixes an issue with OpenBSD, which is a bit "special". --- src/modules/mixer/emixer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/mixer/emixer.c b/src/modules/mixer/emixer.c index 80409ea99..df9a7e6e5 100644 --- a/src/modules/mixer/emixer.c +++ b/src/modules/mixer/emixer.c @@ -55,6 +55,8 @@ _sink_icon_find(const char *name) int i; size_t len; + if (!name) return NULL; + file = getenv("EMIX_SINK_ICONS"); if (!file) return NULL; f = fopen(file, "r");