diff options
-rw-r--r-- | binfile.c | 2 | ||||
-rw-r--r-- | sdecls_cgen.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ #define BINFILE_PORTABLE 1 #ifdef TOC_DEBUG -#define BINFILE_PRINT +/* #define BINFILE_PRINT */ static bool binfile_printing_enabled = true; #endif diff --git a/sdecls_cgen.c b/sdecls_cgen.c index 2fe366c..dcbb121 100644 --- a/sdecls_cgen.c +++ b/sdecls_cgen.c @@ -20,7 +20,7 @@ static bool cgen_sdecls_type(CGenerator *g, Type *type) { /* we've already done this */ } else { cgen_write(g, "struct "); - if (sdef->name->imported) sdef->name = NULL; /* don't use imported names */ + if (sdef->name && sdef->name->imported) sdef->name = NULL; /* don't use imported names */ if (sdef->name) { cgen_ident(g, sdef->name); } else { |