From 9ae6b7c129dd6dd6bf97d66050fbed3ada7b2025 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 26 May 2005 19:31:41 +0000 Subject: [PATCH] Fix PR 13192. --- src/ChangeLog | 8 ++++++++ src/sort.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) 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; -- 2.30.2