Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A std:string is ok here.
[simgrid.git] / src / surf / surf_interface.cpp
index 40a5736..30481fa 100644 (file)
@@ -148,7 +148,7 @@ std::ifstream* surf_ifsopen(std::string name)
   xbt_assert(not name.empty());
 
   std::ifstream* fs = new std::ifstream();
-  if (is_absolute_file_path(name.c_str())) { /* don't mess with absolute file names */
+  if (is_absolute_file_path(name)) { /* don't mess with absolute file names */
     fs->open(name.c_str(), std::ifstream::in);
   }