OSDN Git Service

(locatelib): Fix parsing of LD_LIBRARY_PATH.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Jun 1995 22:19:01 +0000 (22:19 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Jun 1995 22:19:01 +0000 (22:19 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10024 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/collect2.c

index 87ae569..52a0445 100644 (file)
@@ -2181,7 +2181,7 @@ locatelib (name)
            if (*q == ':')
              {
                *q++ = 0;
-               *pp++ = p;
+               *pp++ = q;
              }
        }
       /* built in directories are /lib, /usr/lib, and /usr/local/lib */