summaryrefslogtreecommitdiffstats
path: root/abs/extra/ladspa/hardcode-path.patch
blob: 821c2001c9213e58f2ac308841d533cc46e2998b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- src/search.c.orig	2008-11-07 00:38:18.000000000 +0100
+++ src/search.c	2008-11-07 00:50:51.000000000 +0100
@@ -83,6 +83,8 @@
 	dlclose(pcFilename);
 	free(pcFilename);
       }
+    } else {
+      free(pcFilename);
     }
   }
 }
@@ -99,13 +101,10 @@
 
   pcLADSPAPath = getenv("LADSPA_PATH");
   if (!pcLADSPAPath) {
-    fprintf(stderr,
-	    "Warning: You do not have a LADSPA_PATH "
-	    "environment variable set.\n");
-    return;
+    pcStart = "/usr/lib/ladspa/";
+  } else {
+    pcStart = pcLADSPAPath;
   }
-  
-  pcStart = pcLADSPAPath;
   while (*pcStart != '\0') {
     pcEnd = pcStart;
     while (*pcEnd != ':' && *pcEnd != '\0')