]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix a problem in the parsing of the sort option in sarg.conf
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 28 Nov 2010 15:40:43 +0000 (15:40 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 28 Nov 2010 15:40:43 +0000 (15:40 +0000)
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

index e85a3ca15792efe58620c1a91e7ae158e40aca38..2640696bf52e1a04f0bbd27efabfc3518f59e255 100644 (file)
--- 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;