mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-13 02:14:39 +08:00
* cp-support.c (first_component_command): Return if no arguments.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2008-03-19 Aleksandar Ristovski <aristovski@qnx.com>
|
||||||
|
|
||||||
|
* cp-support.c (first_component_command): Return if no arguments.
|
||||||
|
|
||||||
2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
|
2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
|
||||||
|
|
||||||
* ser-mingw.c (ser_windows_open): Open requested name.
|
* ser-mingw.c (ser_windows_open): Open requested name.
|
||||||
|
@ -892,8 +892,14 @@ maint_cplus_command (char *arg, int from_tty)
|
|||||||
static void
|
static void
|
||||||
first_component_command (char *arg, int from_tty)
|
first_component_command (char *arg, int from_tty)
|
||||||
{
|
{
|
||||||
int len = cp_find_first_component (arg);
|
int len;
|
||||||
char *prefix = alloca (len + 1);
|
char *prefix;
|
||||||
|
|
||||||
|
if (!arg)
|
||||||
|
return;
|
||||||
|
|
||||||
|
len = cp_find_first_component (arg);
|
||||||
|
prefix = alloca (len + 1);
|
||||||
|
|
||||||
memcpy (prefix, arg, len);
|
memcpy (prefix, arg, len);
|
||||||
prefix[len] = '\0';
|
prefix[len] = '\0';
|
||||||
|
Reference in New Issue
Block a user