diff options
author | Torbjörn Andersson | 2008-11-30 10:11:38 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2008-11-30 10:11:38 +0000 |
commit | 8dcb3cbac08a0550ee425835c4fa752297235409 (patch) | |
tree | 471ac00c9a03f496f4a9e5217588724e07ef4fbb | |
parent | 2ba4cb3dbbd0b2709529191c046ef11cdd6df97d (diff) | |
download | scummvm-rg350-8dcb3cbac08a0550ee425835c4fa752297235409.tar.gz scummvm-rg350-8dcb3cbac08a0550ee425835c4fa752297235409.tar.bz2 scummvm-rg350-8dcb3cbac08a0550ee425835c4fa752297235409.zip |
It's unnecessary to use strlen() just to find out if a string is empty or not.
svn-id: r35185
-rw-r--r-- | engines/parallaction/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/parser.cpp b/engines/parallaction/parser.cpp index 296da579db..f4d5df99ab 100644 --- a/engines/parallaction/parser.cpp +++ b/engines/parallaction/parser.cpp @@ -201,7 +201,7 @@ uint16 Script::readLineToken(bool errorOnEOF) { } clearTokens(); - while (strlen(line) > 0 && _numTokens < MAX_TOKENS) { + while (*line && _numTokens < MAX_TOKENS) { line = parseNextToken(line, _tokens[_numTokens], MAX_TOKEN_LEN, " "); line = Common::ltrim(line); _numTokens++; |