From: Ben Pfaff Date: Mon, 16 Apr 2007 02:54:49 +0000 (+0000) Subject: (parse_mappings): Initial "out" member of mapping for CONVERT, fixing X-Git-Tag: v0.6.0~491 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57ae432c7cdd2c8a69fdc561f757863fa535db76;p=pspp-builds.git (parse_mappings): Initial "out" member of mapping for CONVERT, fixing an uninitialized data bug. --- diff --git a/src/language/xforms/ChangeLog b/src/language/xforms/ChangeLog index 461d36dd..84afa3e0 100644 --- a/src/language/xforms/ChangeLog +++ b/src/language/xforms/ChangeLog @@ -1,3 +1,8 @@ +2007-04-15 Ben Pfaff + + * recode.c (parse_mappings): Initialize "out" member of mapping + for CONVERT, fixing an uninitialized data bug. + 2007-04-15 Ben Pfaff * recode.c (enlarge_dst_widths): Source isn't null-terminated, so diff --git a/src/language/xforms/recode.c b/src/language/xforms/recode.c index e7fa44d3..b0a6b732 100644 --- a/src/language/xforms/recode.c +++ b/src/language/xforms/recode.c @@ -260,6 +260,7 @@ parse_mappings (struct lexer *lexer, struct recode_trns *trns) struct map_in in; set_map_in_generic (&in, MAP_CONVERT); add_mapping (trns, &map_allocated, &in); + set_map_out_num (&trns->mappings[trns->map_cnt - 1].out, 0.0); dst_type = VAR_NUMERIC; if (trns->src_type != VAR_STRING