/* Variables. */
struct hsh_table *var_hash;
- struct variable *const *svars;
+ struct variable **svars;
/* File's special constants. */
flt64 sysmis;
assertive_buf_read (r, ¶ms, sizeof(params), 0);
+ if ( ! measure_is_valid(params.measure)
+ ||
+ ! alignment_is_valid(params.align))
+ {
+ msg(MW,
+ _("%s: Invalid variable display parameters. Default parameters substituted."),
+ fh_get_file_name(r->fh));
+ continue;
+ }
+
v = dict_get_var(*dict, i);
v->measure = params.measure;
if ( ! r->svars )
{
- r->svars = (struct variable *const *) hsh_data(r->var_hash);
+ r->svars = (struct variable **) hsh_data(r->var_hash);
sort(r->svars, hsh_count(r->var_hash),
sizeof(*r->svars), compare_var_index, 0);
}