summarylogtreecommitdiffstats
path: root/gcc12.patch
blob: a2bd272c415725de196d46c3d74e5209f05b12c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- oprofile-1.4.0/libperf_events/operf_stats.cpp
+++ oprofile-1.4.0/libperf_events/operf_stats.cpp
@@ -179,7 +179,7 @@ static string create_stats_dir(string const & cur_sampledir)
 	if (rc && (errno != EEXIST)) {
 		cerr << "Error trying to create stats dir. " << endl;
 		perror("mkdir failed with");
-		return NULL;
+		return "";
 	}
 	return stats_dir;
 }