chiark / gitweb /
OSS support in speaker
[disorder] / server / disorderd.c
index b41dadea0809ad327d1f9bf55cc8efb580ed198e..f4a1a627176bce3f219ecf65b40a8d49e799f2d2 100644 (file)
@@ -186,7 +186,8 @@ static void volumecheck_after(long offset) {
 /* We fix the path to include the bindir and sbindir we were installed into */
 static void fix_path(void) {
   char *path = getenv("PATH");
-  char *newpath;
+  static char *newpath;
+  /* static or libgc collects it! */
 
   if(!path)
     error(0, "PATH is not set at all!");