From 1285b746d8c2acc3f544c52d7f9f5c0da60c8512 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 22 Sep 2004 20:23:54 +0000 Subject: * language.c (language_gdbarch_post_init): Fix off-by one error. --- gdb/language.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/language.c') diff --git a/gdb/language.c b/gdb/language.c index d705062..cdf35ea 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -1286,7 +1286,7 @@ language_gdbarch_post_init (struct gdbarch *gdbarch) int i; l = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct language_gdbarch); - for (i = 0; i <= languages_size; i++) + for (i = 0; i < languages_size; i++) { if (languages[i] != NULL && languages[i]->la_language_arch_info != NULL) -- cgit v1.1