summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0534e9b)
If it's not generated by __FILE__ (fortran, for example), it may be destroyed too soon.
This can cause a leak, I will see to that later
class smpi_source_location {
public:
smpi_source_location(const char* filename, int line)
class smpi_source_location {
public:
smpi_source_location(const char* filename, int line)
- : filename(filename), filename_length(strlen(filename)), line(line) {}
+ : filename(xbt_strdup(filename)), filename_length(strlen(filename)), line(line) {}
/** Pointer to a static string containing the file name */
/** Pointer to a static string containing the file name */
- const char* filename = nullptr;
+ char* filename = nullptr;
int filename_length = 0;
int line = 0;
int filename_length = 0;
int line = 0;