// Those are internal requests, we do not need indirection
// because those objects are copies:
- smx_synchro_t synchro1, synchro2;
+ smx_synchro_t synchro1= NULL, synchro2=NULL;
if (r1->call == SIMCALL_COMM_WAIT) {
synchro1 = simcall_comm_wait__get__comm(r1);
}
char *MC_request_to_string(smx_simcall_t req, int value, e_mc_request_type_t request_type)
{
- bool use_remote_comm;
+ bool use_remote_comm = true;
switch(request_type) {
case MC_REQUEST_SIMIX:
use_remote_comm = true;
for (cursor=0; cursor != comms.used; ++cursor) {
// Get the element:
- smx_synchro_t remote_action;
+ smx_synchro_t remote_action = NULL;
memcpy(buffer + comms.elmsize * cursor, &remote_action, sizeof(remote_action));
// Dereference the pointer: