/*OUT*/ double *sec, double *bw) {
/* Measurement sockets for the experiments */
- gras_socket_t measMasterIn=NULL,measIn,measOut;
+ gras_socket_t measMasterIn=NULL,measIn,measOut=NULL;
int port;
bw_request_t request,request_ack;
xbt_ex_t e;
*/
int amok_bw_cb_bw_handshake(gras_socket_t expeditor,
void *payload) {
- gras_socket_t measMasterIn=NULL,measIn,measOut;
+ gras_socket_t measMasterIn=NULL,measIn=NULL,measOut=NULL;
bw_request_t request=*(bw_request_t*)payload;
bw_request_t answer;
xbt_ex_t e;
void *data,
gras_datadesc_type_t ddt) {
- xbt_dynar_t varstack,frame;
+ xbt_dynar_t varstack=NULL,frame;
gras_cbps_elm_t var;
char *varname = (char*)xbt_strdup(name);
xbt_ex_t e;
*/
gras_datadesc_type_t gras_datadesc_by_name(const char *name) {
xbt_ex_t e;
- gras_datadesc_type_t res;
+ gras_datadesc_type_t res = NULL;
TRY {
res = (gras_datadesc_type_t)xbt_set_get_by_name(gras_datadesc_set_local,name);
} CATCH(e) {
*/
gras_datadesc_type_t gras_datadesc_by_id(long int code) {
xbt_ex_t e;
- gras_datadesc_type_t res;
+ gras_datadesc_type_t res=NULL;
TRY {
res = (gras_datadesc_type_t)xbt_set_get_by_id(gras_datadesc_set_local,code);
} CATCH(e) {
xbt_ex_t e;
gras_cbps_t state;
xbt_dict_t refs; /* all references already sent */
- int size;
+ int size=0;
xbt_assert0(type,"called with NULL type descriptor");
short int version,
gras_datadesc_type_t payload) {
- gras_msgtype_t msgtype;
+ gras_msgtype_t msgtype=NULL;
char *namev=make_namev(name,version);
int found = 0;
xbt_ex_t e;
int cpt;
s_gras_msg_t msg;
- gras_socket_t expeditor;
+ gras_socket_t expeditor=NULL;
void *payload=NULL;
int payload_size;
gras_msgtype_t msgtype;
void *gras_libdata_get(const char *name) {
gras_procdata_t *pd=gras_procdata_get();
- void *res;
+ void *res=NULL;
xbt_ex_t e;
TRY {
static xbt_cfgelm_t xbt_cfgelm_get(xbt_cfg_t cfg,
const char *name,
e_xbt_cfgelm_type_t type){
- xbt_cfgelm_t res;
+ xbt_cfgelm_t res=NULL;
xbt_ex_t e;
TRY {
char *str;
int i;
double d;
- e_xbt_cfgelm_type_t type;
+ e_xbt_cfgelm_type_t type=0; /* Set a dummy value to make gcc happy. It cannot get uninitialized */
xbt_ex_t e;
double d;
char *str;
- xbt_cfgelm_t variable;
+ xbt_cfgelm_t variable=NULL;
char *optionlist_cpy;
char *option, *name,*val;
void
xbt_cfg_empty(xbt_cfg_t cfg,const char*name) {
- xbt_cfgelm_t variable;
+ xbt_cfgelm_t variable=NULL;
xbt_ex_t e;
TRY {
* \warning the returned value is the actual content of the config set
*/
xbt_dynar_t xbt_cfg_get_dynar (xbt_cfg_t cfg, const char *name) {
- xbt_cfgelm_t variable;
+ xbt_cfgelm_t variable=NULL;
xbt_ex_t e;
TRY {
xbt_dict_get_or_null(xbt_dict_t dict,
const char *key) {
xbt_ex_t e;
- void *res;
+ void *res=NULL;
TRY {
res = xbt_dictelm_get(dict->head, key);
} CATCH(e) {
_cleanup_double_spaces(cs);
while (!done) {
- xbt_log_category_t cat;
- int found;
+ xbt_log_category_t cat=NULL;
+ int found=0;
xbt_ex_t e;
p=strrchr(cs,' ');