treewide: Use struct fmt_spec by value instead of pointer in most cases.
[pspp] / src / data / dictionary.c
index 800bad9463523fbc8e2b1b00f4ef66cc21966c0f..57fe2c08ef2b9b8c7098edea9fcae54a91221170 100644 (file)
@@ -1318,7 +1318,7 @@ dict_get_rounded_case_weight (const struct dictionary *d,
 struct fmt_spec
 dict_get_weight_format (const struct dictionary *d)
 {
-  return d->weight ? *var_get_print_format (d->weight) : F_8_0;
+  return d->weight ? var_get_print_format (d->weight) : F_8_0;
 }
 
 /* Sets the weighting variable of D to V, or turning off