From: Namhyung Kim Date: Thu, 6 Sep 2012 02:10:45 +0000 (+0900) Subject: perf header: Fix a typo on evsel X-Git-Tag: v3.12-rc1~1727^2~55^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae42c6bb9300cf25990bd15f1bd6ee38598f7483;p=kernel%2Fkernel-generic.git perf header: Fix a typo on evsel For checking return value of the strdup, 'event' should be 'evsel'. Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1346897446-16569-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 43425b7..8b0b873 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -2307,7 +2307,7 @@ static int perf_evsel__set_tracepoint_name(struct perf_evsel *evsel, snprintf(bf, sizeof(bf), "%s:%s", event->system, event->name); evsel->name = strdup(bf); - if (event->name == NULL) + if (evsel->name == NULL) return -1; evsel->tp_format = event;