treewide: Use struct fmt_spec by value instead of pointer in most cases.
[pspp] / src / ui / gui / psppire-dialog-action-roc.c
index 23c6cae24ce1bab8eed7c38391a7837809c128ef..2a8deedd53a34147c789560e4d7a348e102dc3d5 100644 (file)
@@ -186,8 +186,8 @@ generate_syntax (const PsppireDialogAction *a)
       struct string str;
       ds_init_empty (&str);
 
-      syntax_gen_value (&str, &val, var_get_width (var),
-                       var_get_print_format (var));
+      struct fmt_spec f = var_get_print_format (var);
+      syntax_gen_value (&str, &val, var_get_width (var), &f);
 
       g_string_append (string, ds_cstr (&str));
       ds_destroy (&str);