diff options
Diffstat (limited to 'src/utils/padsp.c')
-rw-r--r-- | src/utils/padsp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c index c765b693..ddb732f0 100644 --- a/src/utils/padsp.c +++ b/src/utils/padsp.c @@ -2121,6 +2121,13 @@ int close(int fd) { } int access(const char *pathname, int mode) { + + if (!pathname) { + /* Firefox needs this. See #27 */ + errno = EFAULT; + return -1; + } + debug(DEBUG_LEVEL_VERBOSE, __FILE__": access(%s)\n", pathname); if (strcmp(pathname, "/dev/dsp") != 0 && |