Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
destroy the config set each time we allocate it
[simgrid.git] / src / simgrid / sg_config.cpp
index 6b55477..62693e8 100644 (file)
@@ -382,8 +382,8 @@ static void describe_model(char *result,int resultsize,
 /* create the config set, register what should be and parse the command line*/
 void sg_config_init(int *argc, char **argv)
 {
-  int descsize = 1024;
-  char description[1024];
+  const int descsize = 1024;
+  char description[descsize];
 
   /* Create the configuration support */
   if (_sg_cfg_init_status == 0) { /* Only create stuff if not already inited */