GUI: Skip useless assignment. CID 1002117

This commit is contained in:
Eugene Sandulenko 2013-11-03 01:12:49 +02:00
parent a71e59fd2d
commit aa2a6d7445

View File

@ -752,7 +752,8 @@ bool PredictiveDialog::matchWord() {
char tmp[kMaxLineLen];
strncpy(tmp, _unitedDict.dictLine[line], kMaxLineLen);
tmp[kMaxLineLen - 1] = 0;
char *tok = strtok(tmp, " ");
char *tok;
strtok(tmp, " ");
tok = strtok(NULL, " ");
_currentWord = Common::String(tok, _currentCode.size());
return true;