* cp-abi.c (cp_abi_completer): Fix typo in assignment.
authorTom Tromey <tromey@redhat.com>
Thu, 17 Jan 2013 20:26:14 +0000 (20:26 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 17 Jan 2013 20:26:14 +0000 (20:26 +0000)
gdb/ChangeLog
gdb/cp-abi.c

index e9f2e7cf92cebad9a124f89f3444d16953ec8f0c..9aef3b8c0369bf34dbd016f58fcffd7e5778296a 100644 (file)
@@ -1,3 +1,7 @@
+2013-01-17  Tom Tromey  <tromey@redhat.com>
+
+       * cp-abi.c (cp_abi_completer): Fix typo in assignment.
+
 2013-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * symtab.c (iterate_over_some_symtabs): New variable cleanups,
index f1fa9011e669e7fe2187165a5310a739d9311d32..366ba30ecfcc9c268a7c6bd78fe5d85c73c61b5b 100644 (file)
@@ -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);