Fix rest of PR 13054.
[pspp-builds.git] / src / data-out.c
index 6439b607045f18e5566deec8a438b9197f88d03e..5fce84f6c433b1075db40d5af774ec98eaedfca0 100644 (file)
@@ -193,10 +193,7 @@ data_out (char *s, const struct fmt_spec *fp, const union value *v)
 void
 num_to_string (double v, char *s, int w, int d)
 {
-  struct fmt_spec f;
-  f.type = FMT_F;
-  f.w = w;
-  f.d = d;
+  struct fmt_spec f = make_output_format (FMT_F, w, d);
   convert_F (s, &f, v);
 }
 \f