]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/commitdiff
fcb: Initialized reservation list head
authorTuka Martin <tukamart@fel.cvut.cz>
Sun, 15 Apr 2012 23:04:53 +0000 (01:04 +0200)
committerTuka Martin <tukamart@fel.cvut.cz>
Sun, 15 Apr 2012 23:04:53 +0000 (01:04 +0200)
src/frsh/fres/cbroker/fcb.c

index 69fe78eba5304662137e6e788788338ba675a105..e16aac5e355223d59cfed7cc51fb53561e5ff48d 100644 (file)
@@ -1051,7 +1051,7 @@ void redistribute_spare_capacity(fres_contract_broker obj,
                num_of_contracts++;
        }
        printf("Number of contracts in resource %s: %d\n", resource->name, num_of_contracts);
-
+       reservation_list_init_head(&resource->rl);
        gavl_cust_for_each(fcb_contract, fcb, fc) {
                        rk = get_fc_res_key(fc, &key);
                        if(rk->type == restype_to_find) {