Index: report.c =================================================================== --- report.c (revision 20165) +++ report.c (revision 20166) @@ -389,7 +389,7 @@ sprintf(report + len, "\nPart of subcircuit #%ld\n", subc->ID); } - if (strcmp(how, "log") == 0) + if ((how != NULL) && (strcmp(how, "log") == 0)) pcb_message(PCB_MSG_INFO, "--- Report ---\n%s---\n", report); else pcb_gui->report_dialog("Report", report);