@@ -499,7 +499,7 @@ static void CompileReport(void) | |||
int procedure_num; | |||
int prev_mnemonic; | |||
if (f_report == NULL) | |||
if (f_report == NULL || count_references == 0) | |||
return; | |||
// make a list of all the references and sort it |
@@ -2822,7 +2822,7 @@ static const char *LookupDict2(Translator *tr, const char *word, const char *wor | |||
} | |||
ix = utf8_in(&c, word); | |||
if ((word[ix] == 0) && !IsAlpha(c)) | |||
if (flags != NULL && (word[ix] == 0) && !IsAlpha(c)) | |||
flags[0] |= FLAG_MAX3; | |||
return word_end; | |||