- g_assert (fmt_check_output (&dialog->fmt_l));
- result = memcpy (&spec, &dialog->fmt_l, sizeof (struct fmt_spec));
+ if (! fmt_check_output (&dialog->fmt_l))
+ g_critical ("Invalid variable format");
+ else
+ result = memcpy (&spec, &dialog->fmt_l, sizeof (struct fmt_spec));