- struct_host = xbt_new0(s_surf_parsing_host_arg_t, 1);
- struct_host->V_host_id = xbt_strdup(A_surfxml_host_id);
- struct_host->V_host_power_peak = get_cpu_power(A_surfxml_host_power);
- surf_parse_get_double(&(struct_host->V_host_power_scale), A_surfxml_host_availability);
- surf_parse_get_int(&(struct_host->V_host_core),A_surfxml_host_core);
- struct_host->V_host_power_trace = tmgr_trace_new(A_surfxml_host_availability_file);
- struct_host->V_host_state_trace = tmgr_trace_new(A_surfxml_host_state_file);
+ s_surf_parsing_host_arg_t host;
+ memset(&host,0,sizeof(host));
+
+ host.V_host_id = xbt_strdup(A_surfxml_host_id);
+ host.V_host_power_peak = get_cpu_power(A_surfxml_host_power);
+ surf_parse_get_double(&(host.V_host_power_scale), A_surfxml_host_availability);
+ surf_parse_get_int(&(host.V_host_core),A_surfxml_host_core);
+ host.V_host_power_trace = tmgr_trace_new(A_surfxml_host_availability_file);
+ host.V_host_state_trace = tmgr_trace_new(A_surfxml_host_state_file);