]> git.donarmstrong.com Git - samtools.git/commitdiff
a minor change
authorHeng Li <lh3@live.co.uk>
Tue, 12 Oct 2010 19:51:57 +0000 (19:51 +0000)
committerHeng Li <lh3@live.co.uk>
Tue, 12 Oct 2010 19:51:57 +0000 (19:51 +0000)
bcftools/bcf.c

index 3531647e18775cd5049954385a1022d39a17ec6f..9044b93b0b514fd9566f037a705f8769f60ecc54 100644 (file)
@@ -283,8 +283,7 @@ int bcf_append_info(bcf1_t *b, const char *info, int l)
        b->str[shift + l - 1] = '\0';
        b->fmt = b->str + shift + l;
        b->l_str += l;
-       bcf_sync(b);
-//     if (ori != b->str) bcf_sync(b); // synchronize when realloc changes the pointer
+       if (ori != b->str) bcf_sync(b); // synchronize when realloc changes the pointer
        return 0;
 }