perf: Fix a build error with some GCC versions
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 8 Apr 2011 10:11:06 +0000 (12:11 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 8 Apr 2011 15:40:21 +0000 (17:40 +0200)
commit621d26567fd0c222f419e3b5ddf39e529e0fdcb3
tree804c3ff50b901d96e5c5b41c5c754f0bd2674aa3
parent0c3efe54d0165cecf0698b468e253577b555dde6
perf: Fix a build error with some GCC versions

Fix this:

 util/cgroup.c: In function ‘open_cgroup’:
 util/cgroup.c:16:16: error: ‘saved_ptr’ may be used uninitialized in this function
 util/cgroup.c:16:16: note: ‘saved_ptr’ was declared here

Apparently newer GCC (4.6) can figure out that this variable is properly
initialized - but some versions of GCC (such as 4.5.2) need help.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/cgroup.c