X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/c00fce3ab1dc8b810a439e81e419d7b8ae1d97b9..a9f0ad12d639cdb5186f0482d2856278b41671a2:/server/disorderd.c diff --git a/server/disorderd.c b/server/disorderd.c index b41dade..f4a1a62 100644 --- a/server/disorderd.c +++ b/server/disorderd.c @@ -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!");