Index: export_bom/bom.c =================================================================== --- export_bom/bom.c (revision 33091) +++ export_bom/bom.c (working copy) @@ -63,7 +63,7 @@ static rnd_export_opt_t *bom_get_export_options(rnd_hid_t *hid, int *n) { - if ((PCB != NULL) && (bom_options[HA_bomfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &bom_options[HA_bomfile], ".bom"); if (n) Index: export_dsn/dsn.c =================================================================== --- export_dsn/dsn.c (revision 33091) +++ export_dsn/dsn.c (working copy) @@ -110,7 +110,7 @@ static rnd_export_opt_t *dsn_get_export_options(rnd_hid_t *hid, int *n) { - if ((PCB != NULL) && (dsn_options[HA_dsnfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &dsn_options[HA_dsnfile], ".dsn"); if (n) *n = NUM_OPTIONS; Index: export_dxf/dxf.c =================================================================== --- export_dxf/dxf.c (revision 33091) +++ export_dxf/dxf.c (working copy) @@ -202,7 +202,7 @@ { const char *suffix = ".dxf"; - if ((PCB != NULL) && (dxf_attribute_list[HA_dxffile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &dxf_attribute_list[HA_dxffile], suffix); if (n) Index: export_excellon/excellon.c =================================================================== --- export_excellon/excellon.c (revision 33091) +++ export_excellon/excellon.c (working copy) @@ -204,7 +204,7 @@ static rnd_export_opt_t *excellon_get_export_options(rnd_hid_t *hid, int *n) { - if ((PCB != NULL) && (excellon_options[HA_excellonfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &excellon_options[HA_excellonfile], ""); if (n) Index: export_fidocadj/fidocadj.c =================================================================== --- export_fidocadj/fidocadj.c (revision 33091) +++ export_fidocadj/fidocadj.c (working copy) @@ -85,7 +85,7 @@ { const char *suffix = ".fcd"; - if ((PCB != NULL) && (fidocadj_attribute_list[HA_fidocadjfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &fidocadj_attribute_list[HA_fidocadjfile], suffix); if (n) Index: export_gerber/gerber.c =================================================================== --- export_gerber/gerber.c (revision 33091) +++ export_gerber/gerber.c (working copy) @@ -260,7 +260,7 @@ static rnd_export_opt_t *gerber_get_export_options(rnd_hid_t *hid, int *n) { - if ((PCB != NULL) && (gerber_options[HA_gerberfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &gerber_options[HA_gerberfile], ""); if (n) Index: export_ipcd356/ipcd356.c =================================================================== --- export_ipcd356/ipcd356.c (revision 33091) +++ export_ipcd356/ipcd356.c (working copy) @@ -425,7 +425,7 @@ static rnd_export_opt_t *ipcd356_get_export_options(rnd_hid_t *hid, int *n) { - if ((PCB != NULL) && (ipcd356_options[HA_ipcd356_filename].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &ipcd356_options[HA_ipcd356_filename], ".net"); if (n != NULL) Index: export_openems/export_openems.c =================================================================== --- export_openems/export_openems.c (revision 33091) +++ export_openems/export_openems.c (working copy) @@ -171,7 +171,7 @@ const char *suffix = ".m"; pcb_mesh_t *mesh = pcb_mesh_get(MESH_NAME); - if ((PCB != NULL) && (openems_attribute_list[HA_openemsfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &openems_attribute_list[HA_openemsfile], suffix); if (mesh != NULL) { Index: export_openscad/export_openscad.c =================================================================== --- export_openscad/export_openscad.c (revision 33150) +++ export_openscad/export_openscad.c (working copy) @@ -135,7 +135,7 @@ { const char *suffix = ".scad"; - if ((PCB != NULL) && (openscad_attribute_list[HA_openscadfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &openscad_attribute_list[HA_openscadfile], suffix); if (n) Index: export_png/png.c =================================================================== --- export_png/png.c (revision 33091) +++ export_png/png.c (working copy) @@ -402,7 +402,7 @@ { const char *suffix = get_file_suffix(); - if ((PCB != NULL) && (png_attribute_list[HA_pngfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &png_attribute_list[HA_pngfile], suffix); if (n) Index: export_ps/eps.c =================================================================== --- export_ps/eps.c (revision 33091) +++ export_ps/eps.c (working copy) @@ -120,7 +120,7 @@ static rnd_export_opt_t *eps_get_export_options(rnd_hid_t *hid, int *n) { - if ((PCB != NULL) && (eps_attribute_list[HA_psfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &eps_attribute_list[HA_psfile], ".eps"); if (n) Index: export_ps/ps.c =================================================================== --- export_ps/ps.c (revision 33091) +++ export_ps/ps.c (working copy) @@ -341,7 +341,7 @@ static rnd_export_opt_t *ps_get_export_options(rnd_hid_t *hid, int *n) { - if ((PCB != NULL) && (ps_attribute_list[HA_psfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &ps_attribute_list[HA_psfile], ".ps"); if (n) Index: export_stat/stat.c =================================================================== --- export_stat/stat.c (revision 33091) +++ export_stat/stat.c (working copy) @@ -114,7 +114,7 @@ { const char *suffix = ".stat.lht"; - if ((PCB != NULL) && (stat_attribute_list[HA_statfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &stat_attribute_list[HA_statfile], suffix); if (n) Index: export_stl/export_stl.c =================================================================== --- export_stl/export_stl.c (revision 33091) +++ export_stl/export_stl.c (working copy) @@ -96,7 +96,7 @@ { const char *suffix = ".stl"; - if ((PCB != NULL) && (stl_attribute_list[HA_stlfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &stl_attribute_list[HA_stlfile], suffix); if (n) Index: export_svg/svg.c =================================================================== --- export_svg/svg.c (revision 33091) +++ export_svg/svg.c (working copy) @@ -203,7 +203,7 @@ { const char *suffix = ".svg"; - if ((PCB != NULL) && (svg_attribute_list[HA_svgfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &svg_attribute_list[HA_svgfile], suffix); if (n) Index: export_xy/xy.c =================================================================== --- export_xy/xy.c (revision 33091) +++ export_xy/xy.c (working copy) @@ -145,7 +145,7 @@ xy_options[HA_unit].default_val.lng = rnd_get_unit_struct("mil")->index; last_unit_value = xy_options[HA_unit].default_val.lng; } - if ((PCB != NULL) && (xy_options[HA_xyfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &xy_options[HA_xyfile], ".xy"); if (n) Index: io_tedax/tetest.c =================================================================== --- io_tedax/tetest.c (revision 33091) +++ io_tedax/tetest.c (working copy) @@ -189,7 +189,7 @@ static rnd_export_opt_t *tedax_etest_get_export_options(rnd_hid_t *hid, int *n) { - if ((PCB != NULL) && (tedax_etest_options[HA_outfile].default_val.str == NULL)) + if (PCB != NULL) pcb_derive_default_filename(PCB->hidlib.filename, &tedax_etest_options[HA_outfile], ".etest.tdx"); if (n)