From 4c38b5e4739d43ec4869509a321b9fc07f90d336 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 2 Oct 2008 20:42:10 +0000 Subject: Oops, initialize sections and sections_end to NULL. Submitted by: Navdeep Parhar MFC after: 1 week --- gnu/usr.bin/gdb/kgdb/kld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/usr.bin/gdb/kgdb/kld.c b/gnu/usr.bin/gdb/kgdb/kld.c index 2ce3808..716a67c 100644 --- a/gnu/usr.bin/gdb/kgdb/kld.c +++ b/gnu/usr.bin/gdb/kgdb/kld.c @@ -201,7 +201,7 @@ static void load_kld (char *path, CORE_ADDR base_addr, int from_tty) { struct section_addr_info *sap; - struct section_table *sections, *sections_end, *s; + struct section_table *sections = NULL, *sections_end = NULL, *s; struct cleanup *cleanup; bfd *bfd; int i; -- cgit v1.1