From 6108433d1a0ba373259af9aa1ebfdfc1bcec2eeb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 17 Jan 2013 20:26:14 +0000 Subject: [PATCH] * cp-abi.c (cp_abi_completer): Fix typo in assignment. --- gdb/ChangeLog | 4 ++++ gdb/cp-abi.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e9f2e7cf92c..9aef3b8c036 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-01-17 Tom Tromey + + * cp-abi.c (cp_abi_completer): Fix typo in assignment. + 2013-01-17 Jan Kratochvil * symtab.c (iterate_over_some_symtabs): New variable cleanups, diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c index f1fa9011e66..366ba30ecfc 100644 --- a/gdb/cp-abi.c +++ b/gdb/cp-abi.c @@ -329,7 +329,7 @@ cp_abi_completer (struct cmd_list_element *ignore, cp_abi_names = XNEWVEC (const char *, num_cp_abis + 1); for (i = 0; i < num_cp_abis; ++i) cp_abi_names[i] = cp_abis[i]->shortname; - cp_abis[i] = NULL; + cp_abi_names[i] = NULL; } return complete_on_enum (cp_abi_names, text, word); -- 2.30.2