updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-ladspa / hardcode-path.patch
blob877f445ff35bf68508cbebda01feaa57c2c2c7a6
1 --- src/search.c.orig 2008-11-07 00:38:18.000000000 +0100
2 +++ src/search.c 2011-06-07 00:50:51.000000000 +0100
3 @@ -83,6 +83,8 @@
4 dlclose(pcFilename);
5 free(pcFilename);
7 + } else {
8 + free(pcFilename);
12 @@ -99,13 +101,10 @@
14 pcLADSPAPath = getenv("LADSPA_PATH");
15 if (!pcLADSPAPath) {
16 - fprintf(stderr,
17 - "Warning: You do not have a LADSPA_PATH "
18 - "environment variable set.\n");
19 - return;
20 + pcStart = "/usr/lib32/ladspa/";
21 + } else {
22 + pcStart = pcLADSPAPath;
25 - pcStart = pcLADSPAPath;
26 while (*pcStart != '\0') {
27 pcEnd = pcStart;
28 while (*pcEnd != ':' && *pcEnd != '\0')