Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug to disallow reading of reference sequence from stdin

  • Loading branch information...
commit ea3decfbc0bdad83fd0e205cb792619a35bf5932 1 parent d75cdb0
@drpowell drpowell authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/readSet.c
View
6 src/readSet.c
@@ -699,10 +699,10 @@ static void fillReferenceCoordinateTable(char *filename, ReferenceCoordinateTabl
Coordinate i;
IDnum index = 0;
- if (strcmp(filename, "-"))
- file = fopen(filename, "r");
+ if (strcmp(filename, "-") == 0)
+ exitErrorf(EXIT_FAILURE, false, "Cannot read reference sequence from stdin");
else
- file = stdin;
+ file = fopen(filename, "r");
if (counter == 0)
return;
Please sign in to comment.
Something went wrong with that request. Please try again.