diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-09-22 20:23:54 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-09-22 20:23:54 +0000 |
commit | 1285b746d8c2acc3f544c52d7f9f5c0da60c8512 (patch) | |
tree | b9a641f7dffe79b7d53aeb962a6ef3706f3105d3 /gdb/language.c | |
parent | cbaa0dc5745c8a049fb240105a7f3d5cc79fc78a (diff) | |
download | gdb-1285b746d8c2acc3f544c52d7f9f5c0da60c8512.zip gdb-1285b746d8c2acc3f544c52d7f9f5c0da60c8512.tar.gz gdb-1285b746d8c2acc3f544c52d7f9f5c0da60c8512.tar.bz2 |
* language.c (language_gdbarch_post_init): Fix off-by one error.
Diffstat (limited to 'gdb/language.c')
-rw-r--r-- | gdb/language.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |