From: Ben Pfaff Date: Wed, 10 Jan 2007 03:18:02 +0000 (+0000) Subject: Fix bug #18739. X-Git-Tag: v0.6.0~591 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10b7dcaf6f48414b23ab99348835149419b3c971;p=pspp-builds.git Fix bug #18739. --- diff --git a/src/language/stats/ChangeLog b/src/language/stats/ChangeLog index 970c0b1e..cf4df793 100644 --- a/src/language/stats/ChangeLog +++ b/src/language/stats/ChangeLog @@ -1,3 +1,10 @@ +Tue Jan 9 19:16:11 2007 Ben Pfaff + + Fix bug #18739. + + * aggregate.c (parse_aggregate_functions) Initialize + function_name. + Fri Dec 22 14:04:09 2006 Ben Pfaff Simplify missing value handling. diff --git a/src/language/stats/aggregate.c b/src/language/stats/aggregate.c index bf9eb7a9..d1cfb7dd 100644 --- a/src/language/stats/aggregate.c +++ b/src/language/stats/aggregate.c @@ -409,6 +409,7 @@ parse_aggregate_functions (struct lexer *lexer, const struct dictionary *dict, s n_src = 0; arg[0].c = NULL; arg[1].c = NULL; + ds_init_empty (&function_name); /* Parse the list of target variables. */ while (!lex_match (lexer, '=')) @@ -451,7 +452,7 @@ parse_aggregate_functions (struct lexer *lexer, const struct dictionary *dict, s exclude = MV_ANY; - ds_init_string (&function_name, lex_tokstr (lexer)); + ds_assign_string (&function_name, lex_tokstr (lexer)); ds_chomp (&function_name, '.');