From b06cc9aa57ac84134f3400af707111691c30c35e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sun, 28 Nov 2010 15:40:43 +0000 Subject: [PATCH] Fix a problem in the parsing of the sort option in sarg.conf The sort criterion of any sort parameter in sarg.conf was not stored in the internal variable but or'ed with the default value. Therefore, the sort was not performed if the selected value was tested after the default value in the code. --- getconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getconf.c b/getconf.c index e85a3ca..2640696 100644 --- a/getconf.c +++ b/getconf.c @@ -380,7 +380,7 @@ static int getparam_sort(const char *param,struct sort_list *options,int noption debuga(_("Unknown sort criterion \"%s\" for parameter \"%s\"\n"),buf,param); exit(EXIT_FAILURE); } - *value|=options[i].value; + *value=options[i].value; if (order) { str=order; -- 2.47.2