* command.c (add_cmd): Add missing initialization for enums member.
authorFred Fish <fnf@specifix.com>
Sat, 3 Feb 1996 19:39:34 +0000 (19:39 +0000)
committerFred Fish <fnf@specifix.com>
Sat, 3 Feb 1996 19:39:34 +0000 (19:39 +0000)
Reorder members to match structure declaration to make it easier to
tell when one is missing.

gdb/command.c

index 0362328aea7b26f391f068669eb991290efdf7ee..2ad1ebe0f1d9330c1bc94b257d8c60f33b6337f8 100644 (file)
@@ -79,18 +79,19 @@ add_cmd (name, class, fun, doc, list)
   c->class = class;
   c->function.cfunc = fun;
   c->doc = doc;
-  c->prefixlist = 0;
-  c->prefixname = (char *)NULL;
+  c->hook = NULL;
+  c->prefixlist = NULL;
+  c->prefixname = NULL;
   c->allow_unknown = 0;
-  c->hook = 0;
-  c->hookee = 0;
-  c->cmd_pointer = 0;
   c->abbrev_flag = 0;
-  c->type = not_set_cmd;
   c->completer = make_symbol_completion_list;
-  c->var = 0;
+  c->type = not_set_cmd;
+  c->var = NULL;
   c->var_type = var_boolean;
-  c->user_commands = 0;
+  c->enums = NULL;
+  c->user_commands = NULL;
+  c->hookee = NULL;
+  c->cmd_pointer = NULL;
   *list = c;
   return c;
 }