Loading src/ConfigurationFile.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ char* ConfigurationFile::getLine() throw(PacketExceptionIO*) try { temp = InputTextFile::getLine(); if(temp[0] == 0) if(temp == 0 || temp[0] == 0) return temp; while(strstr(temp, "--") != NULL) { Loading src/Packet.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -254,7 +254,7 @@ bool Packet::createPacketType(char* fileName, bool isprefix, word dimprefix) thr { dimPacketTail = dataField->getPacketTail()->size(); line = file.getLastLineRead(); if(strcmp(line, "[Compression]") == 0) { if(line && strcmp(line, "[Compression]") == 0) { compressible = true; compressionAlgorithmsIndex = atoi(file.getLine()); compressionAlgorithmsSection = atoi(file.getLine()); Loading src/PartOfPacket.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -247,7 +247,7 @@ bool PartOfPacket::loadFields(InputText& fp) throw(PacketException*) do { name = fp.getLine(); count++; if(name[0] == '[') if(fp.isEOF() || name[0] == '[') { count--; break; Loading @@ -273,7 +273,7 @@ bool PartOfPacket::loadFields(InputText& fp) throw(PacketException*) numberOfFields++; name = fp.getLine(); /// It reads until the buffer ends if(name[0] == '[') if(fp.isEOF() || name[0] == '[') { break; } Loading Loading
src/ConfigurationFile.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ char* ConfigurationFile::getLine() throw(PacketExceptionIO*) try { temp = InputTextFile::getLine(); if(temp[0] == 0) if(temp == 0 || temp[0] == 0) return temp; while(strstr(temp, "--") != NULL) { Loading
src/Packet.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -254,7 +254,7 @@ bool Packet::createPacketType(char* fileName, bool isprefix, word dimprefix) thr { dimPacketTail = dataField->getPacketTail()->size(); line = file.getLastLineRead(); if(strcmp(line, "[Compression]") == 0) { if(line && strcmp(line, "[Compression]") == 0) { compressible = true; compressionAlgorithmsIndex = atoi(file.getLine()); compressionAlgorithmsSection = atoi(file.getLine()); Loading
src/PartOfPacket.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -247,7 +247,7 @@ bool PartOfPacket::loadFields(InputText& fp) throw(PacketException*) do { name = fp.getLine(); count++; if(name[0] == '[') if(fp.isEOF() || name[0] == '[') { count--; break; Loading @@ -273,7 +273,7 @@ bool PartOfPacket::loadFields(InputText& fp) throw(PacketException*) numberOfFields++; name = fp.getLine(); /// It reads until the buffer ends if(name[0] == '[') if(fp.isEOF() || name[0] == '[') { break; } Loading