diff options
author | Fred Fish <fnf@specifix.com> | 1996-02-03 19:39:34 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-02-03 19:39:34 +0000 |
commit | f56cc4e7194df384d40a1620502be55253f0fa87 (patch) | |
tree | c0df7aa3e2f38c18b5d90232ec9d2133875165bb /gdb/command.c | |
parent | 8bdae15642ff4d1b37e8ec1406c1a1d3aac2d8a2 (diff) | |
download | gdb-f56cc4e7194df384d40a1620502be55253f0fa87.zip gdb-f56cc4e7194df384d40a1620502be55253f0fa87.tar.gz gdb-f56cc4e7194df384d40a1620502be55253f0fa87.tar.bz2 |
* command.c (add_cmd): Add missing initialization for enums member.
Reorder members to match structure declaration to make it easier to
tell when one is missing.
Diffstat (limited to 'gdb/command.c')
-rw-r--r-- | gdb/command.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/command.c b/gdb/command.c index 0362328..2ad1ebe 100644 --- a/gdb/command.c +++ b/gdb/command.c @@ -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; } |