summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binfile.c2
-rw-r--r--sdecls_cgen.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/binfile.c b/binfile.c
index d9730c3..884665b 100644
--- a/binfile.c
+++ b/binfile.c
@@ -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 {