* f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
properly.
This commit is contained in:
parent
258c00ccb0
commit
a7dfd0102b
2 changed files with 13 additions and 5 deletions
|
@ -72,13 +72,16 @@ f_print_type (struct type *type, char *varstring, struct ui_file *stream,
|
|||
fputs_filtered (" ", stream);
|
||||
f_type_print_varspec_prefix (type, stream, show, 0);
|
||||
|
||||
fputs_filtered (varstring, stream);
|
||||
if (varstring != NULL)
|
||||
{
|
||||
fputs_filtered (varstring, stream);
|
||||
|
||||
/* For demangled function names, we have the arglist as part of the name,
|
||||
so don't print an additional pair of ()'s */
|
||||
/* For demangled function names, we have the arglist as part of the name,
|
||||
so don't print an additional pair of ()'s */
|
||||
|
||||
demangled_args = varstring[strlen (varstring) - 1] == ')';
|
||||
f_type_print_varspec_suffix (type, stream, show, 0, demangled_args);
|
||||
demangled_args = varstring[strlen (varstring) - 1] == ')';
|
||||
f_type_print_varspec_suffix (type, stream, show, 0, demangled_args);
|
||||
}
|
||||
}
|
||||
|
||||
/* Print any asterisks or open-parentheses needed before the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue