X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fconfig.c;h=e39c19b66d3c5bfca96e7b71eb273a03e2133737;hb=1d122f32e6d2b0ae1f964dd755d769885c7bf1c2;hp=19c03e996c568ca3014d8f86782b71cb01da9942;hpb=bb52b40c8ed5b3c938f6bb157b08bcb18bb067c2;p=i3%2Fi3status diff --git a/src/config.c b/src/config.c index 19c03e9..e39c19b 100644 --- a/src/config.c +++ b/src/config.c @@ -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;