From 7eafeed7f9372cddb6dc12bc1b169f3779d384e1 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Sat, 10 Nov 2012 01:46:52 +0100 Subject: [PATCH] --- yaml --- r: 339020 b: refs/heads/master c: f95e0818cbd026a8f2277895c65fcc9cc5b28cf6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/tests/dso-data.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b8fb5a359058..034a04f46e2e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c81251e808fe2386e71990ecd49c408bb7cb4666 +refs/heads/master: f95e0818cbd026a8f2277895c65fcc9cc5b28cf6 diff --git a/trunk/tools/perf/tests/dso-data.c b/trunk/tools/perf/tests/dso-data.c index b5198f52c24a..5eaffa2de9c5 100644 --- a/trunk/tools/perf/tests/dso-data.c +++ b/trunk/tools/perf/tests/dso-data.c @@ -26,6 +26,10 @@ static char *test_file(int size) unsigned char *buf; fd = mkstemp(templ); + if (fd < 0) { + perror("mkstemp failed"); + return NULL; + } buf = malloc(size); if (!buf) {