mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* cp-support.c (first_component_command): Return if no arguments.
This commit is contained in:
@@ -892,8 +892,14 @@ maint_cplus_command (char *arg, int from_tty)
|
||||
static void
|
||||
first_component_command (char *arg, int from_tty)
|
||||
{
|
||||
int len = cp_find_first_component (arg);
|
||||
char *prefix = alloca (len + 1);
|
||||
int len;
|
||||
char *prefix;
|
||||
|
||||
if (!arg)
|
||||
return;
|
||||
|
||||
len = cp_find_first_component (arg);
|
||||
prefix = alloca (len + 1);
|
||||
|
||||
memcpy (prefix, arg, len);
|
||||
prefix[len] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user