Fix up clang warnings in perf_event_open.c
commit1530e83b2b3a610b084649066d75e7e337908f7d
authorVince Weaver <vincent.weaver@maine.edu>
Thu, 4 Jul 2013 04:28:02 +0000 (4 00:28 -0400)
committerDave Jones <davej@redhat.com>
Fri, 5 Jul 2013 14:46:49 +0000 (5 10:46 -0400)
tree1efa8b33b05e819e2050edec02dd15d5db666170
parent76048b026790c8be7ae818d53d1972b4297a080b
Fix up clang warnings in perf_event_open.c

I was slightly off, the problem turned out to be if we fail at fopen()
we never got to the fscanf(), but we'd then still call parse_format()
with an uninitialized format_value.  So good catch by llvm.

The following should fix things.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
syscalls/perf_event_open.c