Index: trunk/src_plugins/export_lpr/lpr.c =================================================================== --- trunk/src_plugins/export_lpr/lpr.c (revision 34306) +++ trunk/src_plugins/export_lpr/lpr.c (revision 34307) @@ -45,7 +45,7 @@ static const rnd_export_opt_t *lpr_get_export_options(rnd_hid_t *hid, int *n) { - char *val; + const char *val; if (lpr_options == 0) { @@ -62,8 +62,8 @@ */ val = lpr_values[HA_lprcommand].str; if ((val == NULL) || (*val == '\0')) { - free(*val); - *val = rnd_strdup("lpr"); + free((char *)lpr_values[HA_lprcommand].str); + lpr_values[HA_lprcommand].str = rnd_strdup("lpr"); } if (n)