diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-01-07 20:39:21 -0800 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-01-07 20:39:21 -0800 |
commit | 87cf5834841d0d85277234138b53aba032015ca8 (patch) | |
tree | 87e30a452715873ca036c96140d6841c35ea912c /src/ld.c | |
parent | ac194d052517be32d1e3dab62782d5f734994dca (diff) | |
download | elfutils-87cf5834841d0d85277234138b53aba032015ca8.tar.gz |
ld: Fix adding to search path list.
Diffstat (limited to 'src/ld.c')
-rw-r--r-- | src/ld.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1183,11 +1183,12 @@ ld_new_searchdir (const char *dir) /* Enqueue the file. */ if (ld_state.tailpaths == NULL) - ld_state.paths = ld_state.tailpaths = newpath; + ld_state.paths = ld_state.tailpaths = newpath->next = newpath; else { ld_state.tailpaths->next = newpath; ld_state.tailpaths = newpath; + newpath->next = ld_state.paths; } } |