Replace "exec" with "executable" in messages.
[deliverable/binutils-gdb.git] / gdb / c-typeprint.c
index 3347050b5c12fb9f63439716656f8289426c91e5..689988d2c80c304c62aa4100cd8976ab1d3c193a 100644 (file)
@@ -135,14 +135,16 @@ c_print_type (type, varstring, stream, show, level)
     fputs_filtered (" ", stream);
   c_type_print_varspec_prefix (type, stream, show, 0);
 
-  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 */
+  if (varstring != NULL)
+    {
+      fputs_filtered (varstring, stream);
 
-  demangled_args = strchr(varstring, '(') != NULL;
-  c_type_print_varspec_suffix (type, stream, show, 0, demangled_args);
+      /* For demangled function names, we have the arglist as part of the name,
+        so don't print an additional pair of ()'s */
 
+      demangled_args = strchr(varstring, '(') != NULL;
+      c_type_print_varspec_suffix (type, stream, show, 0, demangled_args);
+    }
 }
   
 /* If TYPE is a derived type, then print out derivation information.
This page took 0.02336 seconds and 4 git commands to generate.