mixer: name can be null w/OpenBSD.

Without further investigation checking for NULL here fixes
an issue with OpenBSD, which is a bit "special".
This commit is contained in:
Alastair Poole 2021-04-24 09:28:42 +01:00
parent b3705261ea
commit b59c07ea33
1 changed files with 2 additions and 0 deletions

View File

@ -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");