diff options
author | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-05-01 14:42:04 +0300 |
---|---|---|
committer | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-05-01 14:42:04 +0300 |
commit | 09c982c1de248656fe9be129ded8fd3846c89fda (patch) | |
tree | f695ee9198dc59dfa8fd983c8e01adaf9c18694e /phrase-extract | |
parent | dab63e80761e3bb232a8c8cdf775f75d8b426171 (diff) |
Remove bad initialization.
Setting lastLine[0] when lastLine is empty probably doesn't do anything, but
in C++11 is definitely undefined. The value wasn't used anyway!
Diffstat (limited to 'phrase-extract')
-rw-r--r-- | phrase-extract/score-main.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/phrase-extract/score-main.cpp b/phrase-extract/score-main.cpp index d56b8f379..53e4ab501 100644 --- a/phrase-extract/score-main.cpp +++ b/phrase-extract/score-main.cpp @@ -315,7 +315,6 @@ int main(int argc, char* argv[]) // loop through all extracted phrase translations std::string line, lastLine; - lastLine[0] = '\0'; ExtractionPhrasePair *phrasePair = NULL; std::vector< ExtractionPhrasePair* > phrasePairsWithSameSource; std::vector< ExtractionPhrasePair* > phrasePairsWithSameSourceAndTarget; // required for hierarchical rules only, as non-terminal alignments might make the phrases incompatible |