summaryrefslogtreecommitdiff
blob: e736655ae5bcc205eea864543b9be27802ebea5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/velvet_1.2.10.orig/src/readSet.c b/velvet_1.2.10/src/readSet.c
index f58122e..26e579c 100644
--- a/src/readSet.c
+++ b/src/readSet.c
@@ -638,7 +638,8 @@ static void readFastXFile(int fileType, SequencesWriter *seqWriteInfo, char *fil
 	FileGZOrAuto file;
 	IDnum counter = 0;
 
-        file.gzFile = file.autoFile = NULL;
+        file.autoFile = NULL;
+        file.gzFile = NULL;
         if (fileType == AUTO) {
         	file.autoFile = openFileAuto(filename);
                 if (!file.autoFile)
@@ -677,8 +678,10 @@ static void readFastXPair(int fileType, SequencesWriter *seqWriteInfo, char *fil
 	if (cat==REFERENCE)
 		exitErrorf(EXIT_FAILURE, false, "Cannot read reference sequence in 'separate' read mode");
 
-        file1.gzFile = file1.autoFile = NULL;
-        file2.gzFile = file2.autoFile = NULL;
+        file1.autoFile = NULL;
+        file2.autoFile = NULL;
+        file1.autoFile = NULL;
+        file2.autoFile = NULL;
         if (fileType == AUTO) {
         	file1.autoFile = openFileAuto(filename1);
                 if (!file1.autoFile)