]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Fixed "uninitialized variable" warnings in FCB
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 24 May 2009 16:40:59 +0000 (18:40 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 24 May 2009 16:40:59 +0000 (18:40 +0200)
fres/cbroker/fcb.c

index 116789332bf555a41bd083250c1ce9656f234ea0..33260ecc88b2d8f07a9944c000d3891e5ad48fd8 100644 (file)
@@ -582,8 +582,8 @@ negotiate_contracts(fres_contract_broker obj,
                    CORBA_Environment *ev)
 {
        struct fcb *fcb = o2fcb(obj);
-       struct resource *resource;
-       int ret;
+       struct resource *resource = NULL;
+       int ret = 0;
        forb_server_id app;
        fres_contract_ptr_seq *schedulable_contracts;
        struct fcb_contract **fcb_contracts, *fc;