X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fcommands%2Foutput.c;h=a3515edbddbd277be4d25b53783f8cc511294e4d;hb=95cde62bdf5210c1c60dad5598a888b864f93161;hp=38d437ae18fa9a9050c234d699b31ee9d77a0176;hpb=9eb07d79cfaa5a147a708df832c9c9164be4c312;p=pspp diff --git a/src/language/commands/output.c b/src/language/commands/output.c index 38d437ae18..a3515edbdd 100644 --- a/src/language/commands/output.c +++ b/src/language/commands/output.c @@ -86,10 +86,7 @@ cmd_output_modify (struct lexer *lexer, struct dataset *ds UNUSED) goto error; if (width <= 0) - { - const struct fmt_spec *dflt = settings_get_format (); - width = dflt->w; - } + width = settings_get_format ().w; if (!fmt_from_name (type, &fmt.type)) { @@ -112,7 +109,7 @@ cmd_output_modify (struct lexer *lexer, struct dataset *ds UNUSED) const struct string_set_node *node; const char *s; STRING_SET_FOR_EACH (s, node, &rc_names) - if (!pivot_result_class_change (s, &fmt)) + if (!pivot_result_class_change (s, fmt)) lex_error (lexer, _("Unknown cell class %s."), s); } }