gcc wrongly thinks a variable may be uninitialized

It should always be initialized. To avoid a warning, made a change.
This commit is contained in:
Heng Li 2013-03-08 12:45:50 -05:00
parent 274c0ac96c
commit af7b4d8980
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ void bwa_hit2sam(kstring_t *str, const int8_t mat[25], int q, int r, int w, cons
#define is_mapped(x) ((x)->rb >= 0 && (x)->rb < (x)->re && (x)->re <= bns->l_pac<<1)
int score, n_cigar, is_rev = 0, rid, mid, copy_mate = 0, NM = -1;
uint32_t *cigar = 0;
int64_t pos;
int64_t pos = -1;
bwahit_t ptmp, *p = &ptmp;
if (!p_) { // in this case, generate an unmapped alignment