Skip to content

Commit

Permalink
Don't open output files with no name.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Sep 12, 2017
1 parent 7de32e8 commit 3968b51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/correction/generateCorrectionLayouts.C
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ openOutputFile(char *outputPrefix,
bool doOpen = true) {
char outputName[FILENAME_MAX];

if (outputPrefix == NULL)
return(NULL);

if (doOpen == false)
return(NULL);

Expand Down

0 comments on commit 3968b51

Please sign in to comment.