diff options
author | antirez <antirez@gmail.com> | 2014-07-02 16:55:34 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-07-02 16:55:34 +0200 |
commit | e3c0125b70476fa256a7b09acf11344a81f3a8d5 (patch) | |
tree | cae9b3f5e8ca5064cbcfc493d37c297900e96f72 /src | |
parent | a887af34e1b0146d05b374effc27d4a9e2e11d31 (diff) | |
download | redis-e3c0125b70476fa256a7b09acf11344a81f3a8d5.tar.gz |
Properly initialize min/max in latency.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/latency.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/latency.c b/src/latency.c index 8d6d7c04a..a8f7c01d1 100644 --- a/src/latency.c +++ b/src/latency.c @@ -145,7 +145,7 @@ sds latencyCommandGenSparkeline(char *event, struct latencyTimeSeries *ts) { int j; struct sequence *seq = createSparklineSequence(); sds graph = sdsempty(); - uint32_t min, max; + uint32_t min = 0, max = 0; for (j = 0; j < LATENCY_TS_LEN; j++) { int i = (ts->idx + j) % LATENCY_TS_LEN; |