Index: export_test.c =================================================================== --- export_test.c (revision 21307) +++ export_test.c (revision 21308) @@ -43,9 +43,8 @@ static pcb_hid_attribute_t *export_test_get_export_options(int *n) { - if (PCB) { + if ((PCB != NULL) && (export_test_options[HA_export_testfile].default_val.str_value == NULL)) pcb_derive_default_filename(PCB->Filename, &export_test_options[HA_export_testfile], ".export_test"); - } if (n) *n = NUM_OPTIONS;