[pulseaudio-commits] r1352 - /trunk/src/utils/padsp.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Aug 31 08:31:35 PDT 2006
Author: lennart
Date: Thu Aug 31 17:31:33 2006
New Revision: 1352
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1352&root=pulseaudio&view=rev
Log:
work around bug in firefox which apparently misuses access() as NULL pointer test. Original patch by "alon". (Closes #27)
Modified:
trunk/src/utils/padsp.c
Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=1352&root=pulseaudio&r1=1351&r2=1352&view=diff
==============================================================================
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Thu Aug 31 17:31:33 2006
@@ -2121,6 +2121,13 @@
}
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 &&
More information about the pulseaudio-commits
mailing list