diff options
Diffstat (limited to 'gdb/python/py-cmd.c')
-rw-r--r-- | gdb/python/py-cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/python/py-cmd.c b/gdb/python/py-cmd.c index 56321fa..c0e9d96 100644 --- a/gdb/python/py-cmd.c +++ b/gdb/python/py-cmd.c @@ -308,14 +308,14 @@ cmdpy_completer (struct cmd_list_element *command, /* Helper for cmdpy_init which locates the command list to use and pulls out the command name. - + NAME is the command name list. The final word in the list is the name of the new command. All earlier words must be existing prefix commands. *BASE_LIST is set to the final prefix command's list of *sub-commands. - + START_LIST is the list in which the search starts. This function returns the xmalloc()d name of the new command. On @@ -464,16 +464,16 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kw) return -1; pfx_name = NULL; - if (is_prefix != NULL) + if (is_prefix != NULL) { cmp = PyObject_IsTrue (is_prefix); if (cmp == 1) { int i, out; - + /* Make a normalized form of the command name. */ pfx_name = xmalloc (strlen (name) + 2); - + i = 0; out = 0; while (name[i]) |