Skip to content

Commit b39e6f3

Browse files
committed
Update BluecoinsImportTool.h
[void writeToFile()] - Fixed at the file output where if entry.status='\0' it will output unspecified character.
1 parent 8693e9e commit b39e6f3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

BluecoinsImportTool.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,9 @@ void writeToFile() {
815815
file << entry.sourceAccChild << ",";
816816
file << entry.notes << ",";
817817
file << entry.label << ",";
818-
file << entry.status;
818+
if(entry.status != '\0'){
819+
file << entry.status;
820+
}
819821
file << endl;
820822
// Destination Account
821823
file << "Transfer" << ",";
@@ -834,7 +836,9 @@ void writeToFile() {
834836
file << entry.destAccChild << ",";
835837
file << entry.notes << ",";
836838
file << entry.label << ",";
837-
file << entry.status;
839+
if(entry.status != '\0'){
840+
file << entry.status;
841+
}
838842
file << endl;
839843

840844
} else { // For normal use cases.
@@ -855,7 +859,9 @@ void writeToFile() {
855859
file << entry.accChild << ",";
856860
file << entry.notes << ",";
857861
file << entry.label << ",";
858-
file << entry.status;
862+
if(entry.status != '\0'){
863+
file << entry.status;
864+
}
859865
file << endl;
860866

861867
}

0 commit comments

Comments
 (0)