summaryrefslogtreecommitdiff
path: root/graph.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-01-09 14:11:53 +0100
committerJens Axboe <axboe@kernel.dk>2013-01-09 14:11:53 +0100
commit4aaefbfa2b7a7a70ff6c6851dc3cee01b5993149 (patch)
treeaaf730baae7b92608569088d1e44dba3d1ce92f8 /graph.c
parent92a0daf8163eaa8d117d1e6e4fdc11a8dddac2d2 (diff)
downloadfio-4aaefbfa2b7a7a70ff6c6851dc3cee01b5993149.tar.gz
fio-4aaefbfa2b7a7a70ff6c6851dc3cee01b5993149.tar.bz2
graph: fix bogus used initialized warning
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'graph.c')
-rw-r--r--graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/graph.c b/graph.c
index 7a7c7925..5c865dcf 100644
--- a/graph.c
+++ b/graph.c
@@ -180,7 +180,7 @@ static double maxdouble(double a, double b)
static double find_double_values(struct graph_label *l, double_comparator cmp)
{
struct flist_head *entry;
- double answer, tmp;
+ double answer = 0.0, tmp;
int first = 1;
if (flist_empty(&l->value_list))