From 8f25cfa36e332599c83d2e4abc1db60b16526b9b Mon Sep 17 00:00:00 2001 From: Heng Li Date: Mon, 25 Sep 2017 14:22:45 -0400 Subject: [PATCH] r437: fixed uninialized memory on rep_len --- main.c | 2 +- map.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 10d9fbb..16af19b 100644 --- a/main.c +++ b/main.c @@ -6,7 +6,7 @@ #include "mmpriv.h" #include "getopt.h" -#define MM_VERSION "2.2-r436-dirty" +#define MM_VERSION "2.2-r437-dirty" #ifdef __linux__ #include diff --git a/map.c b/map.c index 4244dea..2200bfb 100644 --- a/map.c +++ b/map.c @@ -171,7 +171,7 @@ static void collect_minimizers(const mm_mapopt_t *opt, const mm_idx_t *mi, int n static mm128_t *collect_seed_hits(const mm_mapopt_t *opt, const mm_idx_t *mi, const char *qname, int qlen, int64_t *n_a, int *rep_len, mm_tbuf_t *b) { - int rep_st, rep_en, i; + int rep_st = 0, rep_en = 0, i; mm_match_t *m; mm128_t *a;