From: coldpeace Date: Thu, 22 Jul 2010 08:31:33 +0000 (+0000) Subject: move A_surfxml_process_funtion from here and use process_function argument X-Git-Tag: v3_5~770 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b29584d8c72c720084a67601effd167b2be0bb60 move A_surfxml_process_funtion from here and use process_function argument git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8051 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/simix/smx_deployment.c b/src/simix/smx_deployment.c index 9e02cb26e2..bff6a88cd1 100644 --- a/src/simix/smx_deployment.c +++ b/src/simix/smx_deployment.c @@ -200,11 +200,12 @@ void SIMIX_process_set_function(const char* process_host,const char *process_fun parse_code = SIMIX_get_registered_function(process_function); xbt_assert1(parse_code, "Function '%s' unknown", process_function); + parse_argc = 0; parse_argv = NULL; parse_argc++; parse_argv = xbt_realloc(parse_argv, (parse_argc) * sizeof(char *)); - parse_argv[(parse_argc) - 1] = xbt_strdup(A_surfxml_process_function); + parse_argv[(parse_argc) - 1] = xbt_strdup(process_function); start_time = process_start_time; kill_time = process_kill_time; current_property_set = xbt_dict_new();