projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix problem building with --without-libplot
[pspp-builds.git]
/
src
/
language
/
dictionary
/
numeric.c
diff --git
a/src/language/dictionary/numeric.c
b/src/language/dictionary/numeric.c
index 5c64b948488d2fa8b4aedebd4dca15e69a87ab95..5fa77541b24791aa7d309e5500a6744d4d758b7a 100644
(file)
--- a/
src/language/dictionary/numeric.c
+++ b/
src/language/dictionary/numeric.c
@@
-43,12
+43,12
@@
cmd_numeric (struct lexer *lexer, struct dataset *ds)
char **v;
size_t nv;
char **v;
size_t nv;
- /* Format spec for variables to create. f.type==-1 if default is to
- be used. */
- struct fmt_spec f;
-
do
{
do
{
+ /* Format spec for variables to create. f.type==-1 if default is to
+ be used. */
+ struct fmt_spec f;
+
if (!parse_DATA_LIST_vars (lexer, &v, &nv, PV_NONE))
return CMD_FAILURE;
if (!parse_DATA_LIST_vars (lexer, &v, &nv, PV_NONE))
return CMD_FAILURE;
@@
-57,6
+57,10
@@
cmd_numeric (struct lexer *lexer, struct dataset *ds)
{
if (!parse_format_specifier (lexer, &f))
goto fail;
{
if (!parse_format_specifier (lexer, &f))
goto fail;
+
+ if ( ! fmt_check_output (&f))
+ goto fail;
+
if (fmt_is_string (f.type))
{
char str[FMT_STRING_LEN_MAX + 1];
if (fmt_is_string (f.type))
{
char str[FMT_STRING_LEN_MAX + 1];