Index: trunk/src_plugins/export_dsn/dsn.c =================================================================== --- trunk/src_plugins/export_dsn/dsn.c (revision 34301) +++ trunk/src_plugins/export_dsn/dsn.c (revision 34302) @@ -110,7 +110,7 @@ static const rnd_export_opt_t *dsn_get_export_options(rnd_hid_t *hid, int *n) { - const char **val = dsn_values[HA_dsnfile].str; + const char *val = dsn_values[HA_dsnfile].str; if ((PCB != NULL) && ((val == NULL) || (*val == '\0'))) pcb_derive_default_filename(PCB->hidlib.filename, &dsn_values[HA_dsnfile], ".dsn"); if (n) Index: trunk/src_plugins/export_dxf/dxf.c =================================================================== --- trunk/src_plugins/export_dxf/dxf.c (revision 34301) +++ trunk/src_plugins/export_dxf/dxf.c (revision 34302) @@ -201,7 +201,7 @@ static const rnd_export_opt_t *dxf_get_export_options(rnd_hid_t *hid, int *n) { const char *suffix = ".dxf"; - const char **val = dxf_values[HA_dxffile].str; + const char *val = dxf_values[HA_dxffile].str; if ((PCB != NULL) && ((val == NULL) || (*val == '\0'))) pcb_derive_default_filename(PCB->hidlib.filename, &dxf_values[HA_dxffile], suffix); Index: trunk/src_plugins/export_lpr/lpr.c =================================================================== --- trunk/src_plugins/export_lpr/lpr.c (revision 34301) +++ trunk/src_plugins/export_lpr/lpr.c (revision 34302) @@ -45,11 +45,11 @@ static const rnd_export_opt_t *lpr_get_export_options(rnd_hid_t *hid, int *n) { - char **val; + char *val; if (lpr_options == 0) { - rnd_export_opt_t *ps_opts = ps_hid.get_export_options(&ps_hid, &num_lpr_options); + const rnd_export_opt_t *ps_opts = ps_hid.get_export_options(&ps_hid, &num_lpr_options); lpr_options = calloc(num_lpr_options, sizeof(rnd_hid_attribute_t)); memcpy(lpr_options, ps_opts, num_lpr_options * sizeof(rnd_hid_attribute_t)); memcpy(lpr_options, base_lpr_options, sizeof(base_lpr_options)); @@ -60,8 +60,8 @@ * HID's may want to free() this string value and replace it with a * new one based on how a user fills out a print dialog. */ - val = &lpr_values[HA_lprcommand].str; - if ((*val == NULL) || (**val == '\0')) { + val = lpr_values[HA_lprcommand].str; + if ((val == NULL) || (*val == '\0')) { free(*val); *val = rnd_strdup("lpr"); } Index: trunk/src_plugins/export_png/png.c =================================================================== --- trunk/src_plugins/export_png/png.c (revision 34301) +++ trunk/src_plugins/export_png/png.c (revision 34302) @@ -401,7 +401,7 @@ static const rnd_export_opt_t *png_get_export_options(rnd_hid_t *hid, int *n) { const char *suffix = get_file_suffix(); - char *val = &png_values[HA_pngfile].str; + const char *val = png_values[HA_pngfile].str; if ((PCB != NULL) && ((val == NULL) || (*val == '\0'))) pcb_derive_default_filename(PCB->hidlib.filename, &png_values[HA_pngfile], suffix); Index: trunk/src_plugins/io_tedax/tetest.c =================================================================== --- trunk/src_plugins/io_tedax/tetest.c (revision 34301) +++ trunk/src_plugins/io_tedax/tetest.c (revision 34302) @@ -189,7 +189,7 @@ static const rnd_export_opt_t *tedax_etest_get_export_options(rnd_hid_t *hid, int *n) { - char *val = tedax_etest_values[HA_outfile].str; + const char *val = tedax_etest_values[HA_outfile].str; if ((PCB != NULL) && (val == NULL)) pcb_derive_default_filename(PCB->hidlib.filename, &tedax_etest_values[HA_outfile], ".etest.tdx");