From http://www.jwz.org/xscreensaver/xscreensaver-5.29.tar.gz
[xscreensaver] / driver / subprocs.c
index 65b0079abd86941009eb0cc74662ecaa441838cd..19697241d947073be525043fb592cd77adbfb613 100644 (file)
@@ -1101,8 +1101,9 @@ hack_environment (saver_info *si)
   if (def_path && *def_path)
     {
       const char *opath = getenv("PATH");
+      char *npath;
       if (! opath) opath = "/bin:/usr/bin";  /* WTF */
-      char *npath = (char *) malloc(strlen(def_path) + strlen(opath) + 20);
+      npath = (char *) malloc(strlen(def_path) + strlen(opath) + 20);
       strcpy (npath, "PATH=");
       strcat (npath, def_path);
       strcat (npath, ":");