Skip to content
Browse files

bugfix: empty lines cause troubles

  • Loading branch information...
1 parent ff957c1 commit 771d60b8f774482a77d60dd8559d17bd487c56e8 @lh3 committed Apr 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 kseq.h
View
1 kseq.h
@@ -186,6 +186,7 @@ typedef struct __kstring_t {
seq->seq.s = (char*)malloc(seq->seq.m); \
} \
while ((c = ks_getc(ks)) != -1 && c != '>' && c != '+' && c != '@') { \
+ if (c == '\n') continue; /* skip empty lines */ \
seq->seq.s[seq->seq.l++] = c; /* this is safe: we always have enough space for 1 char */ \
ks_getuntil2(ks, KS_SEP_LINE, &seq->seq, 0, 1); /* read the rest of the line */ \
} \

1 comment on commit 771d60b

@sjackman

Does this fix issue #3?

Please sign in to comment.
Something went wrong with that request. Please try again.