From: Ben Pfaff Date: Thu, 26 May 2005 19:31:41 +0000 (+0000) Subject: Fix PR 13192. X-Git-Tag: v0.4.0~63 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ae6b7c129dd6dd6bf97d66050fbed3ada7b2025;p=pspp-builds.git Fix PR 13192. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9667a24e..18c7c1fe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +Thu May 26 12:29:21 2005 Ben Pfaff + + Fix PR 13192. + + * sort.c: (sort_parse_criteria) Only set *saw_direction if + saw_direction is non-null. Thanks to John Darrington for + reporting this bug. + Tue May 24 21:52:55 2005 Ben Pfaff * get.c: (mtf_processing) Handle case of a lookup table as the diff --git a/src/sort.c b/src/sort.c index 11139868..a16055f9 100644 --- a/src/sort.c +++ b/src/sort.c @@ -226,7 +226,8 @@ sort_parse_criteria (const struct dictionary *dict, msg (SE, _("`)' expected.")); goto error; } - *saw_direction = true; + if (saw_direction != NULL) + *saw_direction = true; } else direction = SRT_ASCEND;