]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter tools: Fix uninitialized variable in perf-report.c
authorMike Galbraith <efault@gmx.de>
Tue, 2 Jun 2009 09:04:44 +0000 (11:04 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 2 Jun 2009 09:11:26 +0000 (11:11 +0200)
commit53cefc49a3004a56349347fa6de78ddc35fd271c
treef166a4361b9ea8e6fe921f1f8397a93382816009
parent3ec0206e180cbc48bf0f51bc0497819285a418e6
perf_counter tools: Fix uninitialized variable in perf-report.c

# make prefix=/usr/local V=1
gcc -o builtin-report.o -c -O2 -ggdb3 -Wall -Werror -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -std=gnu99 -Wdeclaration-after-statement   -DSHA1_HEADER='<openssl/sha.h>'  builtin-report.c
cc1: warnings being treated as errors
builtin-report.c: In function ‘__cmd_report’:
builtin-report.c:626: error: ‘cwdlen’ may be used uninitialized in this function

Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <new-submission>
Documentation/perf_counter/builtin-report.c