Initialize order array with -1 to avoid printing duplicate lines (Thanks XTaran)

This commit is contained in:
Michael Stapelberg 2009-09-01 23:43:31 +02:00
parent 1c0e5ea560
commit 112512c546

View File

@ -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;