From f7a1ed1b56f5fadce59d2f4f902b564d1e608fe1 Mon Sep 17 00:00:00 2001 From: Andreas Gocht Date: Fri, 26 Jan 2018 14:32:29 +0100 Subject: [PATCH] What ever ... --- uncore_perf_plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/uncore_perf_plugin.c b/uncore_perf_plugin.c index 35d6998..0a2d76a 100644 --- a/uncore_perf_plugin.c +++ b/uncore_perf_plugin.c @@ -72,6 +72,7 @@ char* env(const char* name) int name_len = strlen(name); int scorep_len = strlen("SCOREP_METRIC_"); char* scorep_name = malloc((name_len + scorep_len) * sizeof(char)); + sprintf(scorep_name, "%s%s", "SCOREP_METRIC_", name); char* ret = getenv(scorep_name); if (ret == NULL) {