aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2001-10-13 01:20:29 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2001-10-13 01:20:29 +0000
commitfefd0a378f5aff09fb63003bc2a6bb2e2d66ffee (patch)
treea16c72d510287e5e0c0ea5bf766600e218b53a1f /gdb/windows-nat.c
parent7e295ae4db7e1272d9a6c74b480e45b0ca2da73b (diff)
downloadgdb-fefd0a378f5aff09fb63003bc2a6bb2e2d66ffee.zip
gdb-fefd0a378f5aff09fb63003bc2a6bb2e2d66ffee.tar.gz
gdb-fefd0a378f5aff09fb63003bc2a6bb2e2d66ffee.tar.bz2
* win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked list
pointer to beginning rather than one beyond beginning.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 82d4c94..00c9933 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -450,7 +450,7 @@ static int
safe_symbol_file_add_stub (void *argv)
{
#define p ((struct safe_symbol_file_add_args *)argv)
- struct so_stuff *so = solib_start.next;
+ struct so_stuff *so = &solib_start;
while ((so = so->next))
if (strcasecmp (so->name, p->name) == 0)