From: Frédéric Marchal Date: Sun, 28 Nov 2010 15:40:43 +0000 (+0000) Subject: Fix a problem in the parsing of the sort option in sarg.conf X-Git-Tag: v2.3.2~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b06cc9aa57ac84134f3400af707111691c30c35e;p=thirdparty%2Fsarg.git 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. --- 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;