netstar pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b59c07ea334a11844fb98c60110ada62e69f653d

commit b59c07ea334a11844fb98c60110ada62e69f653d
Author: Alastair Poole <nets...@gmail.com>
Date:   Sat Apr 24 09:28:42 2021 +0100

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

-- 


Reply via email to