+2008-02-28 Markus Deuling <deuling@de.ibm.com>
+
+ * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
+ properly.
+
2008-02-28 Tom Tromey <tromey@redhat.com>
* infcmd.c (notice_args_read): Print result of get_inferior_args.
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