Initialize order array with -1 to avoid printing duplicate lines (Thanks XTaran)
This commit is contained in:
parent
1c0e5ea560
commit
112512c546
@ -112,6 +112,10 @@ int load_configuration(const char *configfile) {
|
||||
}
|
||||
OPT("order")
|
||||
{
|
||||
|
||||
for (int c = 0; c < MAX_ORDER; c++)
|
||||
order[c] = -1;
|
||||
|
||||
#define SET_ORDER(opt, idx) { if (strcasecmp(token, opt) == 0) order[idx] = highest_order++; }
|
||||
char *walk, *token;
|
||||
walk = token = dest_value;
|
||||
|
Loading…
Reference in New Issue
Block a user